org.apache.fop.pdf
Class PDFObject

java.lang.Object
  extended byorg.apache.fop.pdf.PDFObject
Direct Known Subclasses:
PDFAction, PDFAnnotList, PDFArray, PDFCharProcs, PDFCIDFont, PDFCIDSystemInfo, PDFEncoding, PDFEncryption, PDFFileSpec, PDFFont, PDFFontDescriptor, PDFFunction, PDFInfo, PDFLink, PDFOutline, PDFPage, PDFPages, PDFPathPaint, PDFResources, PDFRoot, PDFShading, PDFStream, PDFXObject

public abstract class PDFObject
extends Object

generic PDF object. A PDF Document is essentially a collection of these objects. A PDF Object has a number and a generation (although the generation will always be 0 in new documents).


Field Summary
protected  int generation
          the object's generation (0 in new documents)
protected  int number
          the object's number
 
Constructor Summary
PDFObject()
           
PDFObject(int number)
          create an empty object
 
Method Summary
 int getNumber()
           
protected  int output(OutputStream stream)
          write the PDF represention of this object
 String referencePDF()
          the PDF representation of a reference to this object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

number

protected int number
the object's number


generation

protected int generation
the object's generation (0 in new documents)

Constructor Detail

PDFObject

public PDFObject(int number)
create an empty object

Parameters:
number - the object's number

PDFObject

public PDFObject()
Method Detail

getNumber

public int getNumber()
Returns:
the PDF Object number

output

protected int output(OutputStream stream)
              throws IOException
write the PDF represention of this object

Parameters:
stream - the stream to write the PDF to
Returns:
the number of bytes written
Throws:
IOException

referencePDF

public String referencePDF()
the PDF representation of a reference to this object

Returns:
the reference string


Copyright ? 1999-2003 Apache Software Foundation. All Rights Reserved.