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(String ref)
Creates a new PDF reference, but without a reference to the original object.
PDFReference(PDFObject obj)
Creates a new PDF reference.

Method Summary

PDFObject
getObject()
Returns the PDF object
void
outputInline(OutputStream out, Writer writer)
String
toString()

Constructor Details

PDFReference

public PDFReference(String ref)
Creates a new PDF reference, but without a reference to the original object.
Parameters:
ref - an object reference

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

outputInline

public void outputInline(OutputStream out,
                         Writer writer)
            throws IOException
Specified by:
outputInline in interface PDFWritable

toString

public String toString()

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