|
fop 2.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.pdf.PDFReference
public class PDFReference
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. |
|
PDFReference(java.lang.String ref)
Creates a new PDF reference, but without a reference to the original object. |
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PDFReference(PDFObject obj)
obj
- the object to be referencedpublic PDFReference(java.lang.String ref)
ref
- an object referenceMethod Detail |
---|
public PDFObject getObject()
public PDFObjectNumber getObjectNumber()
public int getGeneration()
public java.lang.String toString()
toString
in class java.lang.Object
public 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 PDFWritable
out
- the OutputStream (for binary content)textBuffer
- the text buffer for text content
|
fop 2.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |