| java.lang.Object gnu.jpdf.PDFObject
All known Subclasses: gnu.jpdf.PDFPage, gnu.jpdf.PDFStream, gnu.jpdf.PDFInfo, gnu.jpdf.PDFCatalog, gnu.jpdf.PDFBorder, gnu.jpdf.PDFPageList, gnu.jpdf.PDFFont, gnu.jpdf.PDFOutline, gnu.jpdf.PDFAnnot,
PDFObject | abstract public class PDFObject implements Serializable(Code) | | This is the base class for all Objects that form the PDF document.
author: Peter T Mount, http://www.retep.org.uk/pdf/ author: Eric Z. Beard, ericzbeard@hotmail.com author: $Author: ezb $ version: $Revision: 1.1.1.1 $, $Date: 2001/10/29 19:51:08 $ |
Field Summary | |
protected int | objser This is the unique serial number for this object. | protected PDFDocument | pdfDocument This allows any PDF object to refer to the document being constructed. |
objser | protected int objser(Code) | | This is the unique serial number for this object.
|
pdfDocument | protected PDFDocument pdfDocument(Code) | | This allows any PDF object to refer to the document being constructed.
|
PDFObject | public PDFObject(String type)(Code) | | This is usually called by extensors to this class, and sets the
PDF Object Type
|
getPDFDocument | final public PDFDocument getPDFDocument()(Code) | | Returns the PDF document this object belongs to.
PDF containing this object |
getSerialID | final public int getSerialID()(Code) | | Returns the unique serial number of this object.
Unique serial number of this object. |
getType | public String getType()(Code) | | Returns the PDF Type of this object
The PDF Type of this object |
toArray | public static String toArray(Vector v)(Code) | | This utility method returns a String containing an array definition
based on a Vector containing PDFObjects
Parameters: v - Vector containing PDFObjects String containing a PDF array |
toString | public String toString()(Code) | | Returns the unique serial number in PDF format
the serial number in PDF format |
write | abstract public void write(OutputStream os) throws IOException(Code) | | Writes the object to the output stream.
This method must be overidden.
Note: It should not write any other objects, even if they are
it's Kids, as they will be written by the calling routine.
Parameters: os - OutputStream to send the object to exception: IOException - on error |
writeEnd | final public void writeEnd(OutputStream os) throws IOException(Code) | | The write method should call this after writing anything to the
OutputStream. This will send the standard footer for each object.
Note: There are a few rare cases where this method is not called.
Parameters: os - OutputStream to write to exception: IOException - on error |
writeStart | final public void writeStart(OutputStream os) throws IOException(Code) | | The write method should call this before writing anything to the
OutputStream. This will send the standard header for each object.
Note: There are a few rare cases where this method is not called.
Parameters: os - OutputStream to write to exception: IOException - on error |
|
|