PDFWritablepublic class PDFReference extends java.lang.Object implements PDFWritable
| Constructor | Description |
|---|---|
PDFReference(java.lang.String ref) |
Creates a new PDF reference, but without a reference to the original object.
|
PDFReference(PDFObject obj) |
Creates a new PDF reference.
|
| Modifier and Type | Method | Description |
|---|---|---|
int |
getGeneration() |
Returns the generation.
|
PDFObject |
getObject() |
Returns the PDF object
|
PDFObjectNumber |
getObjectNumber() |
Returns the object number.
|
void |
outputInline(java.io.OutputStream out,
java.lang.StringBuilder textBuffer) |
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 PDFObjectNumber getObjectNumber()
public int getGeneration()
public java.lang.String toString()
toString in class java.lang.Objectpublic void outputInline(java.io.OutputStream out,
java.lang.StringBuilder textBuffer)
IMPORTANT: If you need to write out binary output, call
PDFDocument.flushTextBuffer(StringBuilder, OutputStream) before writing any content
to the OutputStream!
outputInline in interface PDFWritableout - the OutputStream (for binary content)textBuffer - the text buffer for text contentCopyright 1999-2016 The Apache Software Foundation. All Rights Reserved.