java.lang.Object
org.sejda.sambox.input.SourceReader
org.sejda.sambox.input.BaseCOSParser
org.sejda.sambox.input.ContentStreamCOSParser
- All Implemented Interfaces:
Closeable,AutoCloseable
A component capable of parsing COS objects in a content stream as defined in in Chap 7.8.2 of PDF 32000-1:2008, where
"Indirect objects and object references shall not be permitted at all".
-
Field Summary
Fields inherited from class org.sejda.sambox.input.BaseCOSParser
ENDOBJ, ENDSTREAM, STREAMFields inherited from class org.sejda.sambox.input.SourceReader
OBJ -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.sejda.sambox.input.BaseCOSParser
nextArray, nextBoolean, nextDictionary, nextHexadecimalString, nextLiteralString, nextName, nextNull, nextNumber, nextStream, nextStringMethods inherited from class org.sejda.sambox.input.SourceReader
close, isNextToken, length, offset, position, position, readGenerationNumber, readHexString, readInt, readIntegerNumber, readLine, readLiteralString, readLong, readName, readNumber, readObjectNumber, readToken, skipExpected, skipExpected, skipExpectedIndirectObjectDefinition, skipIndirectObjectDefinition, skipSpaces, skipTokenIfValue, source, unreadIfValid, unreadSpaces, unreadUntilSpaces
-
Constructor Details
-
ContentStreamCOSParser
ContentStreamCOSParser(org.sejda.io.SeekableSource source)
-
-
Method Details
-
nextParsedToken
- Specified by:
nextParsedTokenin classBaseCOSParser- Returns:
- The next parsed basic type object from the stream or null if the next token is not a COSBase. Basic types are defined in Chap 7.3 of PDF 32000-1:2008 except for Chap 7.3.10. This method doesn't parse indirect objects definition because they are not permitted in contest stream.
- Throws:
IOException- If there is an error during parsing.
-