|
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 IVisitablevisitor - 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 PdfObjectPdfObject.getDataContainer(),
PdfObject.getIndirectObject()public File getFile()
PdfObject
getFile in class PdfObjectpublic PdfObject getParent()
PdfObject
getParent in class PdfObjectPdfObject.getContainer()public XRefEntry getXrefEntry()
public int hashCode()
hashCode in class Objectpublic boolean isCompressed()
public boolean isInUse()
public boolean isOriginal()
public boolean isUpdateable()
PdfObject
isUpdateable in class PdfObjectpublic void setUpdateable(boolean value)
setUpdateable in class PdfObjectPdfObject.isUpdateable()public String toString()
toString in class Objectpublic PdfIndirectObject swap(PdfObject other)
PdfObject
swap in class PdfObjectother - 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 PdfObjectstream - Target stream.context - File context.public PdfIndirectObject clone(File context)
PdfObject
clone in interface IPdfIndirectObjectclone in class PdfObjectpublic void delete()
IPdfIndirectObjectThe object is no more usable after this method returns.
delete in interface IPdfIndirectObjectpublic PdfDataObject getDataObject()
IPdfIndirectObject
getDataObject in interface IPdfIndirectObjectpublic PdfIndirectObject getIndirectObject()
PdfObject
getIndirectObject in interface IPdfIndirectObjectgetIndirectObject in class PdfObjectPdfObject.getContainer(),
PdfObject.getDataContainer()public PdfReference getReference()
PdfObject
getReference in interface IPdfIndirectObjectgetReference in class PdfObjectpublic boolean isUpdated()
PdfObject
isUpdated in class PdfObjectpublic void setDataObject(PdfDataObject value)
setDataObject in interface IPdfIndirectObjectIPdfIndirectObject.getDataObject()protected boolean isVirtual()
PdfObject
isVirtual in class PdfObjectprotected void setUpdated(boolean value)
setUpdated in class PdfObjectPdfObject.isUpdated()protected void setVirtual(boolean value)
setVirtual in class PdfObjectPdfObject.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 | |||||||||