| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
_s |
| Constructor and Description |
|---|
PjString(java.lang.String s)
Creates a string object.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Returns a deep copy of this object.
|
private static java.lang.String |
decodeEscapedString(java.lang.String pdfString)
Decodes a PDF string enclosed in parentheses.
|
private static java.lang.String |
decodeHexString(java.lang.String pdfString)
Decodes a PDF hexadecimal string enclosed in angle
brackets.
|
static java.lang.String |
decodePdf(java.lang.String pdfString)
Converts a PDF-encoded string to a java String, which may
be then be used to initialize a PjString object.
|
boolean |
equals(java.lang.Object obj)
Compares two PjString objects for equality.
|
java.lang.String |
getString()
Returns the string value of this object.
|
long |
writePdf(java.io.OutputStream os)
Writes this string to a stream in PDF format.
|
public PjString(java.lang.String s)
s - the string value to initialize this object to.public java.lang.String getString()
public long writePdf(java.io.OutputStream os)
throws java.io.IOException
writePdf in class BaseObjectos - the stream to write to.java.io.IOException - if an I/O error occurs.public java.lang.Object clone()
clone in class BaseObjectpublic static java.lang.String decodePdf(java.lang.String pdfString)
throws PdfFormatException
pdfString - the PDF-encoded string to be decoded.PdfFormatException - if pdfString is invalid PDF.private static java.lang.String decodeEscapedString(java.lang.String pdfString)
throws PdfFormatException
pdfString - the PDF-encoded string to be decoded.PdfFormatException - if invalid PDF encoding is
encountered in pdfString.private static java.lang.String decodeHexString(java.lang.String pdfString)
throws PdfFormatException
pdfString - the PDF-encoded string to be decoded.PdfFormatException - if invalid PDF encoding is
encountered in pdfString.public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - the reference object to compare to.