public class PDFString
extends org.apache.fop.pdf.PDFObject
PDFText
class.Constructor and Description |
---|
PDFString(byte[] data)
Creates a new String.
|
PDFString(java.lang.String text)
Creates a new String.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getBinary()
Returns the string as binary data.
|
java.lang.String |
getString()
Returns the string as a Unicode string.
|
static boolean |
isUSASCII(byte[] data)
Indicates whether the given binary data contains only US-ASCII characters.
|
int |
output(java.io.OutputStream stream) |
contentEquals, encode, encodeBinaryToHexString, encodeString, encodeText, formatObject, getChildren, getDocument, getDocumentSafely, getGeneration, getObjectID, getObjectNumber, getParent, hasObjectNumber, makeReference, outputInline, referencePDF, setDocument, setObjectNumber, setObjectNumber, setObjectNumber, setParent, supportsObjectStream, toPDF, toPDFString
public PDFString(java.lang.String text)
text
- the textpublic PDFString(byte[] data)
data
- the text data as byte arraypublic java.lang.String getString()
public byte[] getBinary()
public int output(java.io.OutputStream stream) throws java.io.IOException
output
in class org.apache.fop.pdf.PDFObject
java.io.IOException
public static boolean isUSASCII(byte[] data)
data
- the binary dataCopyright 2007-2025 The Apache Software Foundation. All Rights Reserved.