|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.pdfbox.pdfparser.BaseParser
org.apache.pdfbox.pdfparser.PDFXrefStreamParser
public class PDFXrefStreamParser
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 org.apache.pdfbox.pdfparser.BaseParser |
---|
DEF, document, ENDOBJ, ENDSTREAM, FORCE_PARSING, forceParsing, pdfSource, PROP_PUSHBACK_SIZE |
Constructor Summary | |
---|---|
PDFXrefStreamParser(COSStream strm,
COSDocument doc,
boolean forceParsing,
XrefTrailerResolver resolver)
Constructor. |
Method Summary | |
---|---|
void |
parse()
Parses through the unfiltered stream and populates the xrefTable HashMap. |
Methods inherited from class org.apache.pdfbox.pdfparser.BaseParser |
---|
isClosing, isClosing, isEndOfName, isEOL, isEOL, isWhitespace, isWhitespace, parseBoolean, parseCOSArray, parseCOSDictionary, parseCOSName, parseCOSStream, parseCOSString, parseDirObject, readExpectedString, readInt, readLine, readString, readString, setDocument, skipSpaces |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PDFXrefStreamParser(COSStream strm, COSDocument doc, boolean forceParsing, XrefTrailerResolver resolver) throws java.io.IOException
strm
- The stream to parse.doc
- The document for the current parsing.forceParsing
- flag to skip malformed or otherwise unparseable
input where possibleresolver
- resolver to read the xref/trailer information
java.io.IOException
- If there is an error initializing the stream.Method Detail |
---|
public void parse() throws java.io.IOException
java.io.IOException
- If there is an error while parsing the stream.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |