public class PDFReference extends java.lang.Object implements PDFWritable
Constructor and Description |
---|
PDFReference(PDFObject obj)
Creates a new PDF reference.
|
PDFReference(java.lang.String ref)
Creates a new PDF reference, but without a reference to the original object.
|
Modifier and Type | Method and Description |
---|---|
int |
getGeneration()
Returns the generation.
|
PDFObject |
getObject()
Returns the PDF object
|
int |
getObjectNumber()
Returns the object number.
|
void |
outputInline(java.io.OutputStream out,
java.io.Writer writer)
Writes a "direct object" (inline object) representation to the stream.
|
java.lang.String |
toString() |
public PDFReference(PDFObject obj)
obj
- the object to be referencedpublic PDFReference(java.lang.String ref)
ref
- an object referencepublic PDFObject getObject()
public int getObjectNumber()
public int getGeneration()
public java.lang.String toString()
toString
in class java.lang.Object
public void outputInline(java.io.OutputStream out, java.io.Writer writer) throws java.io.IOException
flush()
is called before any direct calls to out
are made.outputInline
in interface PDFWritable
out
- the OutputStream (for binary content)writer
- the Writer (for text content, wraps the above OutputStream)java.io.IOException
- if an I/O error occursCopyright 1999-2010 The Apache Software Foundation. All Rights Reserved.