public class PdfElementParser extends BaseParser
DEF, document, ENDOBJ, ENDSTREAM, forceParsing, pdfSource, PROP_PUSHBACK_SIZE
Constructor and Description |
---|
PdfElementParser(COSDocument cosDocument,
byte[] input)
Create the PDFElementParser object.
|
Modifier and Type | Method and Description |
---|---|
COSDocument |
getDocument()
Return the COSDocument used to create this object.
|
COSDictionary |
parseAsDictionary()
Parse the input byte array of the constructor call as a COSDictionary.
|
clearResources, isClosing, isClosing, isEndOfName, isEOL, isEOL, isWhitespace, isWhitespace, parseBoolean, parseCOSArray, parseCOSDictionary, parseCOSName, parseCOSStream, parseCOSString, parseCOSString, parseDirObject, readExpectedString, readGenerationNumber, readInt, readLine, readLong, readObjectNumber, readString, readString, readStringNumber, readUntilEndStream, setDocument, skipSpaces
public PdfElementParser(COSDocument cosDocument, byte[] input) throws IOException
cosDocument
- a COSDocument which will be used to parse the byte arrayinput
- the byte array to parseIOException
public COSDictionary parseAsDictionary() throws IOException
IOException
- If the byte array isn't a COSDictionary or if there are an error on the stream parsingpublic COSDocument getDocument()
Copyright © 2002–2015 The Apache Software Foundation. All rights reserved.