|
intarsys PDF library API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.intarsys.pdf.parser.PDFParser
de.intarsys.pdf.parser.COSDocumentParser
public class COSDocumentParser
A parser for PDF data streams.
The parser will create a object representation of the pdf document using COS level objects.
The parser is a one pass, read everything implementation.
Field Summary |
---|
Constructor Summary | |
---|---|
COSDocumentParser(STDocument doc)
|
Method Summary | |
---|---|
STDocument |
getDoc()
|
boolean |
isTokenXRefAt(IRandomAccess input,
int offset)
|
COSObject |
parseIndirectObject(IRandomAccess input,
ISystemSecurityHandler securityHandler)
read a pdf style object from the input. see PDF Reference v1.4, chapter 3.2.9 Indirect Objects COSIndirectObject ::= ObjNum GenNum "obj" Object "endobj" |
int |
parseStartXRef(IRandomAccess input)
the startxref value. |
COSDictionary |
parseTrailer(IRandomAccess input)
parse the trailer section from the current stream position. see PDF Reference v1.4, chapter 3.4.4 File Trailer DocumentTrailer ::= "trailer" COSDict "startxref" COSNumber |
int |
searchLastStartXRef(IRandomAccess input)
Searches the offset to the first trailer in the last 1024 bytes of the document. |
int |
searchLinearized(IRandomAccess input)
Deprecated. Don't use this anymore Returns the offset of the dictionary with linearization parameters if any. Returns -1 otherwise. |
Methods inherited from class de.intarsys.pdf.parser.PDFParser |
---|
getExceptionHandler, handleError, handleWarning, isDelimiter, isDigit, isEOL, isNumberStart, isOctalDigit, isTokenStart, isWhitespace, parseElement, parseHeader, readInteger, readSpaces, readToken, readToken, setExceptionHandler, toCOSObject |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public COSDocumentParser(STDocument doc)
Method Detail |
---|
public boolean isTokenXRefAt(IRandomAccess input, int offset) throws IOException
IOException
public COSObject parseIndirectObject(IRandomAccess input, ISystemSecurityHandler securityHandler) throws IOException, COSLoadException
IOException
COSLoadException
public int searchLastStartXRef(IRandomAccess input) throws IOException, COSLoadException
IOException
COSLoadException
public int parseStartXRef(IRandomAccess input) throws IOException, COSLoadException
IOException
COSLoadException
public int searchLinearized(IRandomAccess input) throws IOException, COSLoadException
input
-
IOException
COSLoadException
public COSDictionary parseTrailer(IRandomAccess input) throws IOException, COSLoadException
IOException
COSLoadException
public STDocument getDoc()
|
intarsys PDF library API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |