|
PDF Clown 0.1.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pdfclown.objects.PdfObject
public abstract class PdfObject
Abstract PDF object.
Constructor Summary | |
---|---|
protected |
PdfObject()
|
Method Summary | |
---|---|
protected Object |
clone()
Creates a shallow copy of this object. |
PdfObject |
clone(File context)
Creates a deep copy of this object within the specified file context. |
static PdfObject |
clone(PdfObject object,
File context)
Gets the clone of the specified object, registered inside the specified file context. |
PdfIndirectObject |
getContainer()
Gets the indirect object containing this object. |
PdfIndirectObject |
getDataContainer()
Gets the indirect object containing the data associated to this object. |
File |
getFile()
Gets the file containing this object. |
PdfIndirectObject |
getIndirectObject()
Gets the indirect object corresponding to this object. |
abstract PdfObject |
getParent()
Gets the parent of this object. |
PdfReference |
getReference()
Gets the indirect reference of this object. |
abstract boolean |
isUpdateable()
Gets whether the detection of object state changes is enabled. |
abstract boolean |
isUpdated()
Gets whether the initial state of this object has been modified. |
protected abstract boolean |
isVirtual()
Gets whether this object acts like a null-object placeholder. |
PdfDataObject |
resolve()
Ensures this object to be resolved into its corresponding data object. |
static PdfDataObject |
resolve(PdfObject object)
Ensures an indirect reference to be resolved into its corresponding data object. |
abstract void |
setUpdateable(boolean value)
|
protected abstract void |
setUpdated(boolean value)
|
protected abstract void |
setVirtual(boolean value)
|
abstract PdfObject |
swap(PdfObject other)
Swaps contents between this object and the other one. |
PdfDirectObject |
unresolve()
Ensures this object to be unresolved into its corresponding indirect reference, if available. |
static PdfDirectObject |
unresolve(PdfDataObject object)
Ensures a data object to be unresolved into its corresponding indirect reference, if available. |
protected void |
update()
Updates the state of this object. |
abstract void |
writeTo(IOutputStream stream,
File context)
Serializes this object to the specified stream. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.pdfclown.objects.IVisitable |
---|
accept |
Constructor Detail |
---|
protected PdfObject()
Method Detail |
---|
public static final PdfObject clone(PdfObject object, File context)
object
- Object to clone into the specified file context.context
- File context of the cloning.public static PdfDataObject resolve(PdfObject object)
object
- Object to resolve.public static PdfDirectObject unresolve(PdfDataObject object)
object
- Object to unresolve.
PdfReference
, if available; object
, otherwise.public PdfObject clone(File context)
public PdfIndirectObject getContainer()
getDataContainer()
,
getIndirectObject()
public PdfIndirectObject getDataContainer()
getContainer()
,
getIndirectObject()
public File getFile()
public PdfIndirectObject getIndirectObject()
getContainer()
,
getDataContainer()
public abstract PdfObject getParent()
getContainer()
public PdfReference getReference()
public abstract boolean isUpdateable()
public abstract boolean isUpdated()
public PdfDataObject resolve()
unresolve()
public abstract void setUpdateable(boolean value)
isUpdateable()
public abstract PdfObject swap(PdfObject other)
other
- Object whose contents have to be swapped with this one's.
public PdfDirectObject unresolve()
PdfReference
, if available; this
, otherwise.resolve()
public abstract void writeTo(IOutputStream stream, File context)
stream
- Target stream.context
- File context.protected final Object clone()
clone
in class Object
protected abstract boolean isVirtual()
protected abstract void setUpdated(boolean value)
isUpdated()
protected abstract void setVirtual(boolean value)
isVirtual()
protected final void update()
|
PDF Clown 0.1.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |