public class PDFName extends PDFObject
DATE_FORMAT, log
Constructor and Description |
---|
PDFName(java.lang.String name)
Creates a new PDF name object.
|
Modifier and Type | Method and Description |
---|---|
protected int |
output(java.io.OutputStream stream)
Write the PDF represention of this object
|
void |
outputInline(java.io.OutputStream out,
java.io.Writer writer)
Writes a "direct object" (inline object) representation to the stream.
|
java.lang.String |
toString() |
contentEquals, encode, encodeBinaryToHexString, encodeString, encodeText, formatDateTime, formatDateTime, formatObject, getDocument, getDocumentSafely, getGeneration, getObjectID, getObjectNumber, getParent, hasObjectNumber, makeReference, referencePDF, setDocument, setObjectNumber, setParent, toPDF, toPDFString
public PDFName(java.lang.String name)
name
- the name valuepublic java.lang.String toString()
toString
in class java.lang.Object
protected int output(java.io.OutputStream stream) throws java.io.IOException
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
outputInline
in class PDFObject
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.