public class PDFObjectStreamParser extends BaseParser
A, ASCII_CR, ASCII_LF, B, D, DEF, document, E, ENDOBJ_STRING, ENDSTREAM_STRING, J, M, N, O, R, S, source, STREAM_STRING, T| Constructor and Description |
|---|
PDFObjectStreamParser(COSStream stream,
COSDocument document)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Map<COSObjectKey,COSBase> |
parseAllObjects()
Parse all compressed objects.
|
COSBase |
parseObject(long objectNumber)
Search for/parse the object with the given object number.
|
Map<Long,Integer> |
readObjectNumbers()
Read all object numbers from the compressed object stream.
|
getObjectKey, isClosing, isClosing, isDigit, isDigit, isEndOfName, isEOF, isEOL, isEOL, isSpace, isSpace, isWhitespace, isWhitespace, parseCOSArray, parseCOSDictionary, parseCOSName, parseCOSString, parseDirObject, readExpectedChar, readExpectedString, readGenerationNumber, readInt, readLine, readLong, readObjectNumber, readString, readString, readStringNumber, skipSpaces, skipWhiteSpacespublic PDFObjectStreamParser(COSStream stream, COSDocument document) throws IOException
stream - The stream to parse.document - The document for the current parsing.IOException - If there is an error initializing the stream.public COSBase parseObject(long objectNumber) throws IOException
objectNumber - the number of the object to b e parsedIOException - if there is an error while parsing the streampublic Map<COSObjectKey,COSBase> parseAllObjects() throws IOException
IOException - if there is an error while parsing the streampublic Map<Long,Integer> readObjectNumbers() throws IOException
IOException - if there is an error while parsing the streamCopyright © 2002–2022 The Apache Software Foundation. All rights reserved.