| |
|
| java.lang.Object com.lowagie.text.pdf.PdfObject com.lowagie.text.pdf.PdfString
All known Subclasses: com.lowagie.text.pdf.PdfDate,
PdfString | public class PdfString extends PdfObject (Code) | | A PdfString -class is the PDF-equivalent of a JAVA-String -object.
A string is a sequence of characters delimited by parenthesis. If a string is too long
to be conveniently placed on a single line, it may be split across multiple lines by using
the backslash character (\) at the end of a line to indicate that the string continues
on the following line. Within a string, the backslash character is used as an escape to
specify unbalanced parenthesis, non-printing ASCII characters, and the backslash character
itself. Use of the \ddd escape sequence is the preferred way to represent characters
outside the printable ASCII character set.
This object is described in the 'Portable Document Format Reference Manual version 1.7'
section 3.2.3 (page 53-56).
See Also: PdfObject See Also: BadPdfFormatException |
Constructor Summary | |
public | PdfString() Constructs an empty PdfString -object. | public | PdfString(String value) Constructs a PdfString -object. | public | PdfString(String value, String encoding) Constructs a PdfString -object. | public | PdfString(byte[] bytes) Constructs a PdfString -object. |
hexWriting | protected boolean hexWriting(Code) | | |
objGen | protected int objGen(Code) | | |
objNum | protected int objNum(Code) | | |
PdfString | public PdfString()(Code) | | Constructs an empty PdfString -object.
|
PdfString | public PdfString(String value)(Code) | | Constructs a PdfString -object.
Parameters: value - the content of the string |
PdfString | public PdfString(String value, String encoding)(Code) | | Constructs a PdfString -object.
Parameters: value - the content of the string Parameters: encoding - an encoding |
PdfString | public PdfString(byte[] bytes)(Code) | | Constructs a PdfString -object.
Parameters: bytes - an array of byte |
getBytes | public byte[] getBytes()(Code) | | |
getEncoding | public String getEncoding()(Code) | | Gets the encoding of this string.
a String |
getOriginalBytes | public byte[] getOriginalBytes()(Code) | | |
isHexWriting | public boolean isHexWriting()(Code) | | |
setObjNum | void setObjNum(int objNum, int objGen)(Code) | | |
toString | public String toString()(Code) | | Returns the String value of the PdfString -object.
a String |
|
|
|