org.apache.fop.pdf

Class PDFReference

Implemented Interfaces:
PDFWritable

public class PDFReference
extends java.lang.Object
implements PDFWritable

Class representing a PDF object reference. The object holds a soft reference to the actual PDF object so the garbage collector can free the object if it's not referenced elsewhere. The important thing about the class is the reference information to the actual PDF object in the PDF file.

Constructor Summary

PDFReference(PDFObject obj)
Creates a new PDF reference.

Method Summary

PDFObject
getObject()
Returns the PDF object
String
toInlinePDFString()

Constructor Details

PDFReference

public PDFReference(PDFObject obj)
Creates a new PDF reference.
Parameters:
obj - the object to be referenced

Method Details

getObject

public PDFObject getObject()
Returns the PDF object
Returns:
the PDF object, or null if it has been released

toInlinePDFString

public String toInlinePDFString()
Specified by:
toInlinePDFString in interface PDFWritable

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