|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.etymon.pjx.PdfObject
com.etymon.pjx.PdfString
public class PdfString
Represents the PDF string object.
Field Summary | |
---|---|
protected java.lang.String |
_s
The string value of this PDF string object. |
Constructor Summary | |
---|---|
PdfString(java.lang.String s)
Constructs a PDF string object representing a string value. |
Method Summary | |
---|---|
protected static java.lang.String |
decodeHexString(java.nio.CharBuffer buf)
|
protected static java.lang.String |
decodeLiteralString(java.nio.CharBuffer buf)
|
boolean |
equals(java.lang.Object obj)
Compares this instance with another PDF object for equality. |
java.lang.String |
getString()
Returns the string value of this PDF string object. |
int |
hashCode()
Returns a hash code for this object. |
protected static boolean |
isWhiteSpace(char ch)
Determines whether a character is a white-space character. |
protected static java.lang.String |
pdfToString(java.nio.CharBuffer buf)
Converts a PDF string object in PDF format to a string value as stored by this class. |
protected int |
writePdf(PdfWriter w,
boolean spacing)
Writes this object in PDF format. |
Methods inherited from class com.etymon.pjx.PdfObject |
---|
clone, filter, filterContents, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.lang.String _s
Constructor Detail |
---|
public PdfString(java.lang.String s)
s
- the string value.Method Detail |
---|
public boolean equals(java.lang.Object obj)
PdfObject
equals
in class PdfObject
obj
- the object to compare this instance with.
true
if the PDF objects are equal.public java.lang.String getString()
public int hashCode()
PdfObject
hashCode
in class PdfObject
protected static boolean isWhiteSpace(char ch)
ch
- the character to examine.
true
if the character is a white-space
character.protected static java.lang.String pdfToString(java.nio.CharBuffer buf) throws PdfFormatException
buf
- contains the PDF string object in PDF format.
PdfFormatException
protected static java.lang.String decodeLiteralString(java.nio.CharBuffer buf) throws java.nio.BufferUnderflowException, PdfFormatException
java.nio.BufferUnderflowException
PdfFormatException
protected static java.lang.String decodeHexString(java.nio.CharBuffer buf) throws java.nio.BufferUnderflowException, PdfFormatException
java.nio.BufferUnderflowException
PdfFormatException
protected int writePdf(PdfWriter w, boolean spacing) throws java.io.IOException
PdfObject
writePdf
in class PdfObject
w
- the PdfWriter
to write to.spacing
- specifies whether to add white-space before
the object. A value of true
enables the
addition of white-space. If the object begins with a PDF
delimiter, then this option is ignored and no white-space
is written.
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |