|
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
org.pdfclown.objects.PdfIndirectObject
public class PdfIndirectObject
PDF indirect object [PDF:1.6:3.2.9].
Constructor Summary | |
---|---|
PdfIndirectObject(File file,
PdfDataObject dataObject,
XRefEntry xrefEntry)
For internal use only. |
Method Summary | |
---|---|
PdfObject |
accept(IVisitor visitor,
Object data)
Accepts a visit. |
PdfIndirectObject |
clone(File context)
Creates a deep copy of this object within the specified file context. |
void |
compress(ObjectStream objectStream)
Adds the data object to the specified object stream [PDF:1.6:3.4.6]. |
void |
delete()
Removes the object from its file context. |
void |
dropFile()
For internal use only. |
void |
dropOriginal()
For internal use only. |
PdfIndirectObject |
getContainer()
Gets the indirect object containing this object. |
PdfDataObject |
getDataObject()
Gets the actual data associated to the indirect reference. |
File |
getFile()
Gets the file containing this object. |
PdfIndirectObject |
getIndirectObject()
Gets the indirect object corresponding to this object. |
PdfObject |
getParent()
Gets the parent of this object. |
PdfReference |
getReference()
Gets the indirect reference of this object. |
XRefEntry |
getXrefEntry()
|
int |
hashCode()
|
boolean |
isCompressed()
Gets whether this object is compressed within an object stream [PDF:1.6:3.4.6]. |
boolean |
isInUse()
Gets whether this object contains a data object. |
boolean |
isOriginal()
Gets whether this object comes intact from an existing file. |
boolean |
isUpdateable()
Gets whether the detection of object state changes is enabled. |
boolean |
isUpdated()
Gets whether the initial state of this object has been modified. |
protected boolean |
isVirtual()
Gets whether this object acts like a null-object placeholder. |
void |
setDataObject(PdfDataObject value)
|
void |
setUpdateable(boolean value)
|
protected void |
setUpdated(boolean value)
|
protected void |
setVirtual(boolean value)
|
PdfIndirectObject |
swap(PdfObject other)
Swaps contents between this object and the other one. |
String |
toString()
|
void |
uncompress()
Removes the data object from its object stream [PDF:1.6:3.4.6]. |
void |
writeTo(IOutputStream stream,
File context)
Serializes this object to the specified stream. |
Methods inherited from class org.pdfclown.objects.PdfObject |
---|
clone, clone, getDataContainer, resolve, resolve, unresolve, unresolve, update |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PdfIndirectObject(File file, PdfDataObject dataObject, XRefEntry xrefEntry)
file
- Associated file.dataObject
- Data object associated to the indirect object. It MUST be
null
, if the indirect object is original or free;null
, if the indirect object is new and in-use.xrefEntry
- Cross-reference entry associated to the indirect object. If the indirect object
is new, its offset field MUST be set to 0.Method Detail |
---|
public PdfObject accept(IVisitor visitor, Object data)
IVisitable
accept
in interface IVisitable
visitor
- Visiting object.data
- Supplemental data.
public void compress(ObjectStream objectStream)
data object
to the specified object stream [PDF:1.6:3.4.6].
objectStream
- Target object stream.public PdfIndirectObject getContainer()
PdfObject
getContainer
in class PdfObject
PdfObject.getDataContainer()
,
PdfObject.getIndirectObject()
public File getFile()
PdfObject
getFile
in class PdfObject
public PdfObject getParent()
PdfObject
getParent
in class PdfObject
PdfObject.getContainer()
public XRefEntry getXrefEntry()
public int hashCode()
hashCode
in class Object
public boolean isCompressed()
public boolean isInUse()
public boolean isOriginal()
public boolean isUpdateable()
PdfObject
isUpdateable
in class PdfObject
public void setUpdateable(boolean value)
setUpdateable
in class PdfObject
PdfObject.isUpdateable()
public String toString()
toString
in class Object
public PdfIndirectObject swap(PdfObject other)
PdfObject
swap
in class PdfObject
other
- Object whose contents have to be swapped with this one's.
public void uncompress()
data object
from its object stream [PDF:1.6:3.4.6].
public void writeTo(IOutputStream stream, File context)
PdfObject
writeTo
in class PdfObject
stream
- Target stream.context
- File context.public PdfIndirectObject clone(File context)
PdfObject
clone
in interface IPdfIndirectObject
clone
in class PdfObject
public void delete()
IPdfIndirectObject
The object is no more usable after this method returns.
delete
in interface IPdfIndirectObject
public PdfDataObject getDataObject()
IPdfIndirectObject
getDataObject
in interface IPdfIndirectObject
public PdfIndirectObject getIndirectObject()
PdfObject
getIndirectObject
in interface IPdfIndirectObject
getIndirectObject
in class PdfObject
PdfObject.getContainer()
,
PdfObject.getDataContainer()
public PdfReference getReference()
PdfObject
getReference
in interface IPdfIndirectObject
getReference
in class PdfObject
public boolean isUpdated()
PdfObject
isUpdated
in class PdfObject
public void setDataObject(PdfDataObject value)
setDataObject
in interface IPdfIndirectObject
IPdfIndirectObject.getDataObject()
protected boolean isVirtual()
PdfObject
isVirtual
in class PdfObject
protected void setUpdated(boolean value)
setUpdated
in class PdfObject
PdfObject.isUpdated()
protected void setVirtual(boolean value)
setVirtual
in class PdfObject
PdfObject.isVirtual()
public void dropFile()
public void dropOriginal()
|
PDF Clown 0.1.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |