org.pdfbox.pdfparser
Class BaseParser

java.lang.Object
  extended byorg.pdfbox.pdfparser.BaseParser
Direct Known Subclasses:
PDFObjectStreamParser, PDFParser, PDFStreamParser

public abstract class BaseParser
extends Object

This class is used to contain parsing logic that will be used by both the PDFParser and the COSStreamParser.

Version:
$Revision: 1.57 $
Author:
Ben Litchfield (ben@benlitchfield.com)

Field Summary
static String DEF
          This is a byte array that will be used for comparisons.
static byte[] ENDSTREAM
          This is a byte array that will be used for comparisons.
 
Constructor Summary
BaseParser(InputStream input)
          Constructor.
 
Method Summary
 void addXref(PDFXref xref)
          This will add an xref.
 List getXrefs()
          This will get all of the xrefs.
 void setDocument(COSDocument doc)
          Set the document for this stream.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ENDSTREAM

public static final byte[] ENDSTREAM
This is a byte array that will be used for comparisons.


DEF

public static final String DEF
This is a byte array that will be used for comparisons.

See Also:
Constant Field Values
Constructor Detail

BaseParser

public BaseParser(InputStream input)
           throws IOException
Constructor.

Parameters:
input - The input stream to read the data from.
Throws:
IOException - If there is an error reading the input stream.
Method Detail

setDocument

public void setDocument(COSDocument doc)
Set the document for this stream.

Parameters:
doc - The current document.

addXref

public void addXref(PDFXref xref)
This will add an xref.

Parameters:
xref - The xref to add.

getXrefs

public List getXrefs()
This will get all of the xrefs.

Returns:
A list of all xrefs.


Copyright null EGIZ - E-Government Innovation Center. All Rights Reserved.