| java.lang.Object com.etymon.pj.object.BaseObject com.etymon.pj.object.PjObject com.etymon.pj.object.PjString
All known Subclasses: com.etymon.pj.object.PjDate,
PjString | public class PjString extends PjObject (Code) | | A representation of the PDF string type.
author: Nassib Nassar |
Constructor Summary | |
public | PjString(String s) Creates a string object. |
Method Summary | |
public Object | clone() Returns a deep copy of this object. | public static String | decodePdf(String pdfString) Converts a PDF-encoded string to a java String, which may
be then be used to initialize a PjString object.
Parameters: pdfString - the PDF-encoded string to be decoded. | public boolean | equals(Object obj) Compares two PjString objects for equality.
Parameters: obj - the reference object to compare to. | public String | getString() Returns the string value of this object. | public long | writePdf(OutputStream os) Writes this string to a stream in PDF format.
Parameters: os - the stream to write to. |
PjString | public PjString(String s)(Code) | | Creates a string object.
Parameters: s - the string value to initialize this object to. |
clone | public Object clone()(Code) | | Returns a deep copy of this object.
a deep copy of this object. |
decodePdf | public static String decodePdf(String pdfString) throws PdfFormatException(Code) | | Converts a PDF-encoded string to a java String, which may
be then be used to initialize a PjString object.
Parameters: pdfString - the PDF-encoded string to be decoded. the sequence of characters decoded from pdfString,represented as a java String. exception: PdfFormatException - if pdfString is invalid PDF. |
equals | public boolean equals(Object obj)(Code) | | Compares two PjString objects for equality.
Parameters: obj - the reference object to compare to. true if this object is the same as obj, falseotherwise. |
getString | public String getString()(Code) | | Returns the string value of this object.
the string value of this object. |
writePdf | public long writePdf(OutputStream os) throws IOException(Code) | | Writes this string to a stream in PDF format.
Parameters: os - the stream to write to. the number of bytes written. exception: IOException - if an I/O error occurs. |
|
|