Package com.tom_roush.pdfbox.pdfparser
Class PDFXrefStreamParser
- java.lang.Object
-
- com.tom_roush.pdfbox.pdfparser.BaseParser
-
- com.tom_roush.pdfbox.pdfparser.PDFXrefStreamParser
-
public class PDFXrefStreamParser extends BaseParser
This will parse a PDF 1.5 (or better) Xref stream and extract the xref information from the stream.
-
-
Field Summary
-
Fields inherited from class com.tom_roush.pdfbox.pdfparser.BaseParser
A, ASCII_CR, ASCII_LF, B, D, DEF, document, E, ENDOBJ_STRING, ENDSTREAM_STRING, J, M, N, O, R, S, STREAM_STRING, T
-
-
Constructor Summary
Constructors Constructor Description PDFXrefStreamParser(COSStream stream, COSDocument document, XrefTrailerResolver resolver)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidparse()Parses through the unfiltered stream and populates the xrefTable HashMap.-
Methods inherited from class com.tom_roush.pdfbox.pdfparser.BaseParser
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
-
-
-
-
Constructor Detail
-
PDFXrefStreamParser
public PDFXrefStreamParser(COSStream stream, COSDocument document, XrefTrailerResolver resolver) throws IOException
Constructor.- Parameters:
stream- The stream to parse.document- The document for the current parsing.resolver- resolver to read the xref/trailer information- Throws:
IOException- If there is an error initializing the stream.
-
-
Method Detail
-
parse
public void parse() throws IOExceptionParses through the unfiltered stream and populates the xrefTable HashMap.- Throws:
IOException- If there is an error while parsing the stream.
-
-