public class PDFXrefStreamParser extends BaseParser
Modifier and Type | Field and Description |
---|---|
private COSStream |
stream |
private XrefTrailerResolver |
xrefTrailerResolver |
A, ASCII_CR, ASCII_LF, B, D, DEF, document, E, ENDOBJ_STRING, ENDSTREAM_STRING, J, M, MAX_LENGTH_LONG, N, O, R, S, seqSource, STREAM_STRING, T
Constructor and Description |
---|
PDFXrefStreamParser(COSStream stream,
COSDocument document,
XrefTrailerResolver resolver)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
parse()
Parses through the unfiltered stream and populates the xrefTable HashMap.
|
isClosing, isClosing, isDigit, isDigit, isEndOfName, isEOL, isEOL, isSpace, isSpace, isWhitespace, isWhitespace, parseBoolean, parseCOSArray, parseCOSDictionary, parseCOSName, parseCOSString, parseDirObject, readExpectedChar, readExpectedString, readExpectedString, readGenerationNumber, readInt, readLine, readLong, readObjectNumber, readString, readString, readStringNumber, skipSpaces, skipWhiteSpaces
private final COSStream stream
private final XrefTrailerResolver xrefTrailerResolver
public PDFXrefStreamParser(COSStream stream, COSDocument document, XrefTrailerResolver resolver) throws java.io.IOException
stream
- The stream to parse.document
- The document for the current parsing.resolver
- resolver to read the xref/trailer informationjava.io.IOException
- If there is an error initializing the stream.