public class PDFName extends PDFObject implements java.io.Serializable
| 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, getChildren, getDocument, getDocumentSafely, getGeneration, getObjectID, getObjectNumber, getParent, hasObjectNumber, makeReference, referencePDF, setDocument, setObjectNumber, setObjectNumber, setObjectNumber, setParent, toPDF, toPDFStringpublic PDFName(java.lang.String name)
name - the name valuepublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getName()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic int output(java.io.OutputStream stream)
throws java.io.IOException
PDFObjectpublic 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 PDFWritableoutputInline in class PDFObjectout - the OutputStream (for binary content)textBuffer - the text buffer for text contentjava.io.IOException - if an I/O error occursCopyright 1999-2022 The Apache Software Foundation. All Rights Reserved.