public class PdfReferencedObjects extends java.lang.Object implements PdfObjectFilter
PdfObjectFilter
interface. The preFilter(PdfObject)
method can be overridden in a subclass to
pre-process the object and its contents. This class is
synchronized.Modifier and Type | Field and Description |
---|---|
protected PdfManager |
_m
The manager to use for resolving references.
|
protected java.util.Set |
_ref
The current set of referenced objects (stored as indirect
references).
|
protected java.util.Set |
_ref_master
The total set of referenced objects (stored as indirect
references).
|
Constructor and Description |
---|
PdfReferencedObjects(PdfManager manager)
Constructs a
PdfReferencedObjects instance. |
Modifier and Type | Method and Description |
---|---|
java.util.Set |
getReferenced(PdfObject obj)
Returns the set of all objects referenced by the specified
PDF object.
|
PdfObject |
postFilter(PdfObject obj)
This method is used by
getReferenced(PdfObject) and should not be called
externally. |
PdfObject |
preFilter(PdfObject obj)
This method is used by
getReferenced(PdfObject) and should not be called
externally; however, it may be overridden in subclasses
in order to pre-process the objects. |
protected java.util.Set _ref_master
protected java.util.Set _ref
protected PdfManager _m
public PdfReferencedObjects(PdfManager manager)
PdfReferencedObjects
instance.manager
- the manager associated with the document.public java.util.Set getReferenced(PdfObject obj) throws java.io.IOException, PdfFormatException
PdfObject.filter(PdfObjectFilter)
to process objects
recursively.obj
- the object to examine.PdfFormatException
java.io.IOException
public PdfObject preFilter(PdfObject obj) throws PdfFormatException
getReferenced(PdfObject)
and should not be called
externally; however, it may be overridden in subclasses
in order to pre-process the objects. (It is not
synchronized.)preFilter
in interface PdfObjectFilter
obj
- the object to filter.PdfFormatException
public PdfObject postFilter(PdfObject obj) throws PdfFormatException
getReferenced(PdfObject)
and should not be called
externally. (It is not synchronized.)postFilter
in interface PdfObjectFilter
obj
- the object to filter.PdfFormatException