|
fop-pdf-images 2.2 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.fop.pdf.PDFObject
org.apache.fop.render.pdf.pdfbox.PDFString
public class PDFString
Special PDF object for strings that goes beyond FOP's PDFText class.
| Field Summary |
|---|
| Fields inherited from class org.apache.fop.pdf.PDFObject |
|---|
log |
| Constructor Summary | |
|---|---|
PDFString(byte[] data)
Creates a new String. |
|
PDFString(java.lang.String text)
Creates a new String. |
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class org.apache.fop.pdf.PDFObject |
|---|
contentEquals, encode, encodeBinaryToHexString, encodeString, encodeText, formatObject, getChildren, getDocument, getDocumentSafely, getGeneration, getObjectID, getObjectNumber, getParent, hasObjectNumber, makeReference, outputInline, referencePDF, setDocument, setObjectNumber, setObjectNumber, setObjectNumber, setParent, toPDF, toPDFString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PDFString(java.lang.String text)
text - the textpublic PDFString(byte[] data)
data - the text data as byte array| Method Detail |
|---|
public 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.PDFObjectjava.io.IOExceptionpublic static boolean isUSASCII(byte[] data)
data - the binary data
|
fop-pdf-images 2.2 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||