Package org.verapdf.parser
Class COSParser
- java.lang.Object
-
- org.verapdf.parser.BaseParser
-
- org.verapdf.parser.COSParser
-
- Direct Known Subclasses:
DecodedObjectStreamParser
,PDFParser
,SignatureParser
public class COSParser extends BaseParser
- Author:
- Timur Kamalov
-
-
Field Summary
Fields Modifier and Type Field 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 documentprotected Queue<COSObject>
objects
-
Fields inherited from class org.verapdf.parser.BaseParser
source
-
-
Constructor Summary
Constructors Constructor Description COSParser(InputStream fileStream)
COSParser(String filename)
COSParser(COSDocument document, InputStream fileStream)
COSParser(COSDocument document, String filename)
COSParser(SeekableInputStream seekableInputStream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected COSObject
getArray()
protected COSObject
getDictionary()
COSDocument
getDocument()
protected COSObject
getName()
protected COSObject
getStream(COSObject dict)
COSObject
nextObject()
-
Methods inherited from class org.verapdf.parser.BaseParser
appendToToken, clearToken, closeInputStream, findKeyword, findKeyword, getLine, getLine, getLineBytes, getRandomAccess, getRawBytes, getToken, initializeToken, isCR, isDigit, isDigit, isEOL, isFF, isHexDigit, isLF, isNextByteEOL, nextLine, nextToken, readName, readNumber, readUntilDelimiter, skipExpectedCharacter, skipSingleEol, skipSingleSpace, skipSingleSpace, skipSpaces, skipSpaces
-
-
-
-
Field Detail
-
LINEARIZATION_DICTIONARY_LOOKUP_SIZE
protected final int LINEARIZATION_DICTIONARY_LOOKUP_SIZE
Linearization dictionary must be in first 1024 bytes of document- See Also:
- Constant Field Values
-
document
protected COSDocument document
-
keyOfCurrentObject
protected COSKey keyOfCurrentObject
-
flag
protected boolean flag
-
-
Constructor Detail
-
COSParser
public COSParser(SeekableInputStream seekableInputStream) throws IOException
- Throws:
IOException
-
COSParser
public COSParser(String filename) throws IOException
- Throws:
IOException
-
COSParser
public COSParser(InputStream fileStream) throws IOException
- Throws:
IOException
-
COSParser
public COSParser(COSDocument document, String filename) throws IOException
- Throws:
IOException
-
COSParser
public COSParser(COSDocument document, InputStream fileStream) throws IOException
- Throws:
IOException
-
-
Method Detail
-
nextObject
public COSObject nextObject() throws IOException
- Throws:
IOException
-
getArray
protected COSObject getArray() throws IOException
- Throws:
IOException
-
getName
protected COSObject getName() throws IOException
- Throws:
IOException
-
getDictionary
protected COSObject getDictionary() throws IOException
- Throws:
IOException
-
getStream
protected COSObject getStream(COSObject dict) throws IOException
- Throws:
IOException
-
getDocument
public COSDocument getDocument()
-
-