org.apache.fop.pdf

Class PDFXObject

Implemented Interfaces:
PDFWritable
Known Direct Subclasses:
PDFFormXObject, PDFImageXObject

public abstract class PDFXObject
extends AbstractPDFStream

Abstract base class of PDF XObjects. A derivative of the PDF Object, is a PDF Stream that has not only a dictionary but a stream of image data. The dictionary just provides information like the stream length. This outputs the image dictionary and the image data. This is used as a reference for inserting the same image in the document in another place.

Field Summary

Fields inherited from class org.apache.fop.pdf.PDFDictionary

entries, order

Fields inherited from class org.apache.fop.pdf.PDFObject

DATE_FORMAT, log

Constructor Summary

PDFXObject()
Create an XObject with the given number.

Method Summary

PDFName
getName()
Returns the XObject's name.
protected int
getSizeHint()
protected void
populateStreamDict(Object lengthEntry)

Methods inherited from class org.apache.fop.pdf.AbstractPDFStream

encodeAndWriteStream, encodeStream, getFilterList, getSizeHint, output, outputRawStreamData, outputStreamData, populateStreamDict, prepareImplicitFilters, setupFilterList

Methods inherited from class org.apache.fop.pdf.PDFDictionary

get, output, put, put, writeDictionary

Methods inherited from class org.apache.fop.pdf.PDFObject

encode, encodeBinaryToHexString, encodeString, encodeText, formatDateTime, formatDateTime, formatObject, getDocument, getDocumentSafely, getGeneration, getObjectID, getObjectNumber, getParent, hasObjectNumber, makeReference, output, outputInline, referencePDF, setDocument, setObjectNumber, setParent, toPDF, toPDFString

Constructor Details

PDFXObject

public PDFXObject()
Create an XObject with the given number.

Method Details

getName

public PDFName getName()
Returns the XObject's name.
Returns:
the name of the XObject

getSizeHint

protected int getSizeHint()
            throws IOException
Overrides:
getSizeHint in interface AbstractPDFStream

populateStreamDict

protected void populateStreamDict(Object lengthEntry)
Overrides:
populateStreamDict in interface AbstractPDFStream

Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.