Package org.verapdf.parser
Class NotSeekableCOSParser
java.lang.Object
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
Fields inherited from class org.verapdf.parser.NotSeekableBaseParser
isPSParser, source
-
Constructor Summary
ConstructorDescriptionNotSeekableCOSParser
(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, findKeyword, getLineBytes, getToken, initializeToken, isCR, isDigit, isDigit, isEndOfComment, isFF, isLF, nextToken, readLine, readNumber, readUntilDelimiter, skipSpaces, skipSpaces, skipStreamSpaces
-
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
-