public class COSParser extends BaseParser
| Modifier and Type | Field and Description |
|---|---|
protected COSDocument |
document |
protected boolean |
flag |
protected Queue<Long> |
integers |
protected COSKey |
keyOfCurrentObject |
protected int |
LINEARIZATION_DICTIONARY_LOOKUP_SIZE
Linearization dictionary must be in first 1024 bytes of document
|
protected Queue<COSObject> |
objects |
source| Constructor and Description |
|---|
COSParser(COSDocument document,
InputStream fileStream) |
COSParser(COSDocument document,
String filename) |
COSParser(InputStream fileStream) |
COSParser(SeekableInputStream seekableInputStream) |
COSParser(String filename) |
| Modifier and Type | Method and Description |
|---|---|
protected COSObject |
getArray() |
protected COSObject |
getDictionary() |
COSDocument |
getDocument() |
protected COSObject |
getName() |
protected COSObject |
getStream(COSObject dict) |
COSObject |
nextObject() |
appendToToken, clearToken, closeInputStream, findKeyword, findKeyword, getLine, getLine, getLineBytes, getRandomAccess, getRawBytes, getToken, initializeToken, isCR, isDigit, isDigit, isEOL, isFF, isHexDigit, isLF, isNextByteEOL, nextToken, readName, readNumber, readUntilDelimiter, skipExpectedCharacter, skipSingleEol, skipSingleSpace, skipSingleSpace, skipSpaces, skipSpacesprotected final int LINEARIZATION_DICTIONARY_LOOKUP_SIZE
protected COSDocument document
protected COSKey keyOfCurrentObject
protected boolean flag
public COSParser(SeekableInputStream seekableInputStream) throws IOException
IOExceptionpublic COSParser(String filename) throws IOException
IOExceptionpublic COSParser(InputStream fileStream) throws IOException
IOExceptionpublic COSParser(COSDocument document, String filename) throws IOException
IOExceptionpublic COSParser(COSDocument document, InputStream fileStream) throws IOException
IOExceptionpublic COSObject nextObject() throws IOException
IOExceptionprotected COSObject getArray() throws IOException
IOExceptionprotected COSObject getName() throws IOException
IOExceptionprotected COSObject getDictionary() throws IOException
IOExceptionprotected COSObject getStream(COSObject dict) throws IOException
IOExceptionpublic COSDocument getDocument()
Copyright © 2015–2020 The veraPDF Consortium. All rights reserved.