|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.etymon.pj.object.BaseObject
com.etymon.pj.object.PjObject
com.etymon.pj.object.PjString
public class PjString
A representation of the PDF string type.
Field Summary | |
---|---|
private java.lang.String |
_s
|
Constructor Summary | |
---|---|
PjString(java.lang.String s)
Creates a string object. |
Method Summary | |
---|---|
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. |
Methods inherited from class com.etymon.pj.object.PjObject |
---|
renumber |
Methods inherited from class com.etymon.pj.object.BaseObject |
---|
toString, write, write, write, writeln |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private java.lang.String _s
Constructor Detail |
---|
public PjString(java.lang.String s)
s
- the string value to initialize this object to.Method Detail |
---|
public java.lang.String getString()
public long writePdf(java.io.OutputStream os) throws java.io.IOException
writePdf
in class BaseObject
os
- the stream to write to.
java.io.IOException
- if an I/O error occurs.public java.lang.Object clone()
clone
in class BaseObject
public 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.Object
obj
- the reference object to compare to.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |