public class PDFName extends PDFObject implements Serializable
Constructor and Description |
---|
PDFName(String name)
Creates a new PDF name object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getName()
Returns the name without the leading slash.
|
int |
hashCode() |
int |
output(OutputStream stream)
Write the PDF represention of this object
|
void |
outputInline(OutputStream out,
StringBuilder textBuffer)
Writes a "direct object" (inline object) representation to the stream.
|
String |
toString() |
contentEquals, encode, encodeBinaryToHexString, encodeString, encodeText, formatObject, getChildren, getDocument, getDocumentSafely, getGeneration, getObjectID, getObjectNumber, getParent, hasObjectNumber, makeReference, referencePDF, setDocument, setObjectNumber, setObjectNumber, setObjectNumber, setParent, supportsObjectStream, toPDF, toPDFString
public PDFName(String name)
name
- the name valuepublic String getName()
public int output(OutputStream stream) throws IOException
PDFObject
output
in class PDFObject
stream
- the stream to write the PDF toIOException
- if there is an error writing to the streampublic void outputInline(OutputStream out, StringBuilder textBuffer) throws 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 contentIOException
- if an I/O error occursCopyright © 2025 Apache Software Foundation. All rights reserved.