Package org.verapdf.parser
Class NotSeekableCOSParser
java.lang.Object
org.verapdf.parser.BaseParser
org.verapdf.parser.NotSeekableBaseParser
org.verapdf.parser.NotSeekableCOSParser
- All Implemented Interfaces:
Closeable,AutoCloseable
- Direct Known Subclasses:
PDFStreamParser,PSParser
Parser for COS objects that operates with a buffered stream. The seek()
operation of stream is not required.
- Author:
- Sergey Shemyakov
-
Field Summary
FieldsFields inherited from class org.verapdf.parser.BaseParser
isPSParser, source, token -
Constructor Summary
ConstructorsConstructorDescriptionNotSeekableCOSParser(ASInputStream stream) NotSeekableCOSParser(ASInputStream stream, boolean isPSParser) NotSeekableCOSParser(ASInputStream stream, COSDocument document) -
Method Summary
Methods inherited from class org.verapdf.parser.NotSeekableBaseParser
close, extendArray, findKeyword, getSource, isEndOfComment, readASCII85, skipComment, skipStreamSpacesMethods inherited from class org.verapdf.parser.BaseParser
appendToToken, clearToken, findKeyword, getErrorMessage, getLine, getLineBytes, getToken, initializeToken, isCR, isDigit, isDigit, isFF, isLF, nextToken, readName, readNumber, readUntilDelimiter, skipSingleSpace, skipSpaces, skipSpaces
-
Field Details
-
document
-
objects
-
integers
-
keyOfCurrentObject
-
flag
protected boolean flag
-
-
Constructor Details
-
NotSeekableCOSParser
- Throws:
IOException
-
NotSeekableCOSParser
- Throws:
IOException
-
NotSeekableCOSParser
- Throws:
IOException
-
-
Method Details
-
nextObject
Gets next object from the source.- Returns:
- next COSObject.
- Throws:
IOException
-
getArray
- Throws:
IOException
-
getName
- Throws:
IOException
-
getCloseDictionary
-
getDictionary
- Throws:
IOException
-