| Modifier and Type | Field and Description |
|---|---|
protected SeekableInputStream |
source |
| Constructor and Description |
|---|
BaseParser(InputStream fileStream) |
BaseParser(SeekableInputStream stream) |
BaseParser(String fileName) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
appendToToken(byte ch) |
protected void |
clearToken() |
void |
closeInputStream() |
protected boolean |
findKeyword(Token.Keyword keyword) |
protected boolean |
findKeyword(Token.Keyword keyword,
int lookUpSize) |
protected String |
getLine() |
protected String |
getLine(int offset) |
protected byte[] |
getLineBytes() |
ASInputStream |
getRandomAccess(long length) |
static byte[] |
getRawBytes(String string) |
protected Token |
getToken() |
protected void |
initializeToken() |
protected static boolean |
isCR(int c) |
protected boolean |
isDigit() |
protected static boolean |
isDigit(byte c) |
protected boolean |
isEOL(byte ch) |
protected static boolean |
isFF(int c) |
protected static boolean |
isHexDigit(byte ch) |
protected static boolean |
isLF(int c) |
protected boolean |
isNextByteEOL() |
protected void |
nextToken() |
protected void |
readName() |
protected void |
readNumber() |
protected String |
readUntilDelimiter() |
protected void |
skipExpectedCharacter(char exp) |
protected void |
skipSingleEol() |
protected void |
skipSpaces() |
protected void |
skipSpaces(boolean skipComment) |
protected void |
skipStreamSpaces() |
protected SeekableInputStream source
public BaseParser(SeekableInputStream stream) throws IOException
IOExceptionpublic BaseParser(String fileName) throws FileNotFoundException
FileNotFoundExceptionpublic BaseParser(InputStream fileStream) throws IOException
IOExceptionpublic void closeInputStream()
throws IOException
IOExceptionprotected Token getToken()
protected String getLine() throws IOException
IOExceptionprotected byte[] getLineBytes()
throws IOException
IOExceptionprotected String getLine(int offset) throws IOException
IOExceptionprotected String readUntilDelimiter() throws IOException
IOExceptionprotected boolean findKeyword(Token.Keyword keyword) throws IOException
IOExceptionprotected boolean findKeyword(Token.Keyword keyword, int lookUpSize) throws IOException
IOExceptionprotected void nextToken()
throws IOException
IOExceptionpublic ASInputStream getRandomAccess(long length) throws IOException
IOExceptionprotected boolean isNextByteEOL()
throws IOException
IOExceptionprotected void skipSingleEol()
throws IOException
IOExceptionprotected void skipSpaces()
throws IOException
IOExceptionprotected void skipSpaces(boolean skipComment)
throws IOException
IOExceptionprotected void skipStreamSpaces()
throws IOException
IOExceptionprotected boolean isDigit()
throws IOException
IOExceptionprotected static boolean isDigit(byte c)
protected static boolean isHexDigit(byte ch)
protected static boolean isLF(int c)
protected static boolean isCR(int c)
protected static boolean isFF(int c)
protected boolean isEOL(byte ch)
throws IOException
IOExceptionprotected void readName()
throws IOException
IOExceptionprotected void readNumber()
throws IOException
IOExceptionprotected void initializeToken()
protected void clearToken()
protected void appendToToken(byte ch)
public static byte[] getRawBytes(String string)
protected void skipExpectedCharacter(char exp)
throws IOException
IOExceptionCopyright © 2015–2017 The veraPDF Consortium. All rights reserved.