Package org.verapdf.parser
Class PDFStreamParser
- java.lang.Object
-
- org.verapdf.parser.NotSeekableBaseParser
-
- org.verapdf.parser.NotSeekableCOSParser
-
- org.verapdf.parser.PDFStreamParser
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public class PDFStreamParser extends NotSeekableCOSParser
- Author:
- Timur Kamalov
-
-
Field Summary
-
Fields inherited from class org.verapdf.parser.NotSeekableCOSParser
document, flag, integers, keyOfCurrentObject, objects
-
Fields inherited from class org.verapdf.parser.NotSeekableBaseParser
isPSParser, source
-
-
Constructor Summary
Constructors Constructor Description PDFStreamParser(ASInputStream stream)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static byte[]getByteArrayFromArrayList(ArrayList<Byte> list)List<Closeable>getImageDataStreams()List<Object>getTokens()Iterator<Object>getTokensIterator()protected StringnextOperator()ObjectparseNextToken()This will parse the next token in the stream.voidparseTokens()-
Methods inherited from class org.verapdf.parser.NotSeekableCOSParser
getArray, getCloseDictionary, getDictionary, getName, nextObject
-
Methods inherited from class org.verapdf.parser.NotSeekableBaseParser
close, extendArray, findKeyword, findKeyword, getLineBytes, getToken, initializeToken, isCR, isDigit, isDigit, isEndOfComment, isFF, isLF, nextToken, readLine, readNumber, readUntilDelimiter, skipSpaces, skipSpaces, skipStreamSpaces
-
-
-
-
Constructor Detail
-
PDFStreamParser
public PDFStreamParser(ASInputStream stream) throws IOException
- Throws:
IOException
-
-
Method Detail
-
parseTokens
public void parseTokens() throws IOException- Throws:
IOException
-
parseNextToken
public Object parseNextToken() throws IOException
This will parse the next token in the stream.- Returns:
- The next token in the stream or null if there are no more tokens in the stream.
- Throws:
IOException- If an io error occurs while parsing the stream.
-
nextOperator
protected String nextOperator() throws IOException
- Throws:
IOException
-
-