com.etymon.pjx.util
Class PdfPageObjects

java.lang.Object
  extended by com.etymon.pjx.util.PdfReferencedObjects
      extended by com.etymon.pjx.util.PdfPageObjects
All Implemented Interfaces:
PdfObjectFilter

public class PdfPageObjects
extends PdfReferencedObjects

Examines a specified page dictionary and returns the set of all objects it references that are required for the page to be extracted from the document. This class is synchronized.


Field Summary
protected  PdfManager _mgr
          The manager to use for resolving references.
protected static PdfName PDFNAME_ANNOT
          A PdfName object representing the name Annot.
protected static PdfName PDFNAME_P
          A PdfName object representing the name P.
protected static PdfName PDFNAME_PAGE
          A PdfName object representing the name Page.
protected static PdfName PDFNAME_PARENT
          A PdfName object representing the name Parent.
protected static PdfName PDFNAME_TYPE
          A PdfName object representing the name Type.
 
Fields inherited from class com.etymon.pjx.util.PdfReferencedObjects
_m, _ref, _ref_master
 
Constructor Summary
PdfPageObjects(PdfManager manager)
          Constructs a PdfPageObjects instance.
 
Method Summary
 java.util.Set getReferenced(PdfObject obj)
          Returns the set of all objects referenced by the specified page object that are required for the page to be extracted from the document.
 PdfObject preFilter(PdfObject obj)
          This method is used by getReferenced(PdfObject) and should not be called externally.
 
Methods inherited from class com.etymon.pjx.util.PdfReferencedObjects
postFilter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_mgr

protected PdfManager _mgr
The manager to use for resolving references.


PDFNAME_ANNOT

protected static final PdfName PDFNAME_ANNOT
A PdfName object representing the name Annot.


PDFNAME_P

protected static final PdfName PDFNAME_P
A PdfName object representing the name P.


PDFNAME_PAGE

protected static final PdfName PDFNAME_PAGE
A PdfName object representing the name Page.


PDFNAME_PARENT

protected static final PdfName PDFNAME_PARENT
A PdfName object representing the name Parent.


PDFNAME_TYPE

protected static final PdfName PDFNAME_TYPE
A PdfName object representing the name Type.

Constructor Detail

PdfPageObjects

public PdfPageObjects(PdfManager manager)
Constructs a PdfPageObjects instance.

Parameters:
manager - the manager associated with the document.
Method Detail

getReferenced

public java.util.Set getReferenced(PdfObject obj)
                            throws java.io.IOException,
                                   PdfFormatException
Returns the set of all objects referenced by the specified page object that are required for the page to be extracted from the document.

Overrides:
getReferenced in class PdfReferencedObjects
Parameters:
obj - the object to examine.
Throws:
PdfFormatException
java.io.IOException

preFilter

public PdfObject preFilter(PdfObject obj)
                    throws PdfFormatException
This method is used by getReferenced(PdfObject) and should not be called externally. (It is not synchronized.)

Specified by:
preFilter in interface PdfObjectFilter
Overrides:
preFilter in class PdfReferencedObjects
Parameters:
obj - the object to filter.
Returns:
the filtered object.
Throws:
PdfFormatException