PDF Clown
0.0.8

it.stefanochizzolini.clown.objects
Class PdfIndirectObject

java.lang.Object
  extended by it.stefanochizzolini.clown.objects.PdfObject
      extended by it.stefanochizzolini.clown.objects.PdfIndirectObject
All Implemented Interfaces:
IPdfIndirectObject, Cloneable

public class PdfIndirectObject
extends PdfObject
implements IPdfIndirectObject

PDF indirect object [PDF:1.6:3.2.9].

Version:
0.0.7
Author:
Stefano Chizzolini (http://www.stefanochizzolini.it)

Constructor Summary
PdfIndirectObject(File file, PdfDataObject dataObject, XRefEntry xrefEntry)
          For internal use only.
 
Method Summary
 Object clone(File context)
          Gets the clone of the object, registered inside the given file context.
 void delete()
          Removes the object from its file context.
 void dropFile()
          For internal use only.
 void dropOriginal()
          For internal use only.
 PdfDataObject getDataObject()
          Gets the actual data associated to the indirect reference.
 File getFile()
           
 PdfIndirectObject getIndirectObject()
          Gets the indirect object associated to the indirect reference.
 PdfReference getReference()
          Gets the indirect reference associated to the indirect object.
 int hashCode()
           
 boolean isInUse()
           
 boolean isOriginal()
           
 void setDataObject(PdfDataObject value)
           
 void update()
           
 void writeTo(IOutputStream stream)
          Serializes the object to the given stream.
 
Methods inherited from class it.stefanochizzolini.clown.objects.PdfObject
clone
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PdfIndirectObject

public PdfIndirectObject(File file,
                         PdfDataObject dataObject,
                         XRefEntry xrefEntry)
For internal use only.

Parameters:
file - Associated file.
dataObject - Data object associated to the indirect object. It MUST be null if the indirect object is original (i.e. coming from an existing file) or free. It MUST be NOT 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 (zero).
Method Detail

getFile

public File getFile()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

isInUse

public boolean isInUse()

isOriginal

public boolean isOriginal()

update

public void update()

writeTo

public void writeTo(IOutputStream stream)
Description copied from class: PdfObject
Serializes the object to the given stream.

Specified by:
writeTo in class PdfObject

clone

public Object clone(File context)
Description copied from class: PdfObject
Gets the clone of the object, registered inside the given file context.

Specified by:
clone in interface IPdfIndirectObject
Specified by:
clone in class PdfObject

delete

public void delete()
Description copied from interface: IPdfIndirectObject
Removes the object from its file context.

Remarks

The object is no more usable after this method returns.

Specified by:
delete in interface IPdfIndirectObject

getDataObject

public PdfDataObject getDataObject()
Description copied from interface: IPdfIndirectObject
Gets the actual data associated to the indirect reference.

Specified by:
getDataObject in interface IPdfIndirectObject

getIndirectObject

public PdfIndirectObject getIndirectObject()
Description copied from interface: IPdfIndirectObject
Gets the indirect object associated to the indirect reference.

Specified by:
getIndirectObject in interface IPdfIndirectObject

getReference

public PdfReference getReference()
Description copied from interface: IPdfIndirectObject
Gets the indirect reference associated to the indirect object.

Specified by:
getReference in interface IPdfIndirectObject

setDataObject

public void setDataObject(PdfDataObject value)
Specified by:
setDataObject in interface IPdfIndirectObject
See Also:
IPdfIndirectObject.getDataObject()

dropFile

public void dropFile()
For internal use only.


dropOriginal

public void dropOriginal()
For internal use only.


PDF Clown
0.0.8

Project home page

Copyright © 2006-2010 Stefano Chizzolini. Some Rights Reserved.
This documentation is available under the terms of the GNU Free Documentation License.