public class PDFName extends PDFObject
Constructor and Description |
---|
PDFName(java.lang.String name)
Creates a new PDF name object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getName()
Returns the name without the leading slash.
|
int |
hashCode() |
int |
output(java.io.OutputStream stream)
Write the PDF represention of this object
|
void |
outputInline(java.io.OutputStream out,
java.lang.StringBuilder textBuffer)
Writes a "direct object" (inline object) representation to the stream.
|
java.lang.String |
toString() |
contentEquals, encode, encodeBinaryToHexString, encodeString, encodeText, 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
public java.lang.String getName()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public int output(java.io.OutputStream stream) throws java.io.IOException
PDFObject
public void outputInline(java.io.OutputStream out, java.lang.StringBuilder textBuffer) throws java.io.IOException
PDFObject
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
outputInline
in class PDFObject
out
- the OutputStream (for binary content)textBuffer
- the text buffer for text contentjava.io.IOException
- if an I/O error occursCopyright 1999-2012 The Apache Software Foundation. All Rights Reserved.