public class NotSeekableBaseParser extends Object implements Closeable
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
isPSParser |
protected ASBufferedInFilter |
source |
| Constructor and Description |
|---|
NotSeekableBaseParser(ASInputStream stream)
Constructor from stream.
|
NotSeekableBaseParser(ASInputStream fileStream,
boolean isPSParser) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes source stream.
|
static byte[] |
extendArray(byte[] array) |
protected boolean |
findKeyword(Token.Keyword keyword) |
protected boolean |
findKeyword(Token.Keyword keyword,
int lookUpSize) |
protected byte[] |
getLineBytes() |
protected Token |
getToken() |
protected void |
initializeToken() |
protected static boolean |
isCR(int c) |
protected boolean |
isDigit() |
protected static boolean |
isDigit(byte c) |
protected boolean |
isEndOfComment(byte ch) |
protected static boolean |
isFF(int c) |
protected static boolean |
isLF(int c) |
protected void |
nextToken() |
protected void |
readLine() |
protected void |
readNumber() |
protected String |
readUntilDelimiter() |
protected void |
skipSpaces() |
protected void |
skipSpaces(boolean skipComment) |
protected void |
skipStreamSpaces() |
protected boolean isPSParser
protected ASBufferedInFilter source
public NotSeekableBaseParser(ASInputStream stream) throws IOException
stream - is source data stream.IOExceptionpublic NotSeekableBaseParser(ASInputStream fileStream, boolean isPSParser) throws IOException
IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionprotected void initializeToken()
protected Token getToken()
protected void readLine()
throws IOException
IOExceptionprotected byte[] getLineBytes()
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
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 boolean isEndOfComment(byte ch)
protected static boolean isFF(int c)
protected static boolean isLF(int c)
protected static boolean isCR(int c)
public static byte[] extendArray(byte[] array)
protected void readNumber()
throws IOException
IOExceptionCopyright © 2015–2020 The veraPDF Consortium. All rights reserved.