|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
This class represents a PDF String Object. A StringObject
consists of a series of bytes in the range 0 to 255. A StringObject
can be written in two ways:
LiteralStringObject HexStringObject The methods define in this interface are common to both Literal and Hexadecimal Strings Object.
| Method Summary | |
String |
getDecryptedLiteralString(SecurityManager securityManager)
Gets the decrypted literal string value of the data using the key provided by the security manager. |
String |
getHexString()
Gets a hexadecimal String representation of this object's data. |
StringBuffer |
getHexStringBuffer()
Gets a hexadecimal StringBuffer representation of this objects data. |
int |
getLength()
The length of the underlying objects data. |
String |
getLiteralString()
Gets a literal String representation of this object's data. |
StringBuffer |
getLiteralStringBuffer()
Gets a literal StringBuffer representation of this object's data. |
StringBuffer |
getLiteralStringBuffer(int fontFormat,
NFont font)
Gets a literal String representation of this objects data using the specified font and format. |
int |
getUnsignedInt(int start,
int offset)
Gets the unsigned integer value of this object's data specified by the start index and offset parameters. |
void |
setReference(Reference reference)
Sets the parent PDF object's reference. |
String |
toString()
Returns a string representation of the object. |
| Method Detail |
public String toString()
Returns a string representation of the object.
public StringBuffer getLiteralStringBuffer()
Gets a literal StringBuffer representation of this object's data.
public String getLiteralString()
Gets a literal String representation of this object's data.
public StringBuffer getHexStringBuffer()
Gets a hexadecimal StringBuffer representation of this objects data.
public String getHexString()
Gets a hexadecimal String representation of this object's data.
public int getUnsignedInt(int start,
int offset)
start - the beginning index, inclusive.offset - the number of string characters to read.
public StringBuffer getLiteralStringBuffer(int fontFormat,
NFont font)
fontFormat - the type of PDF font which will be used to display
the text. Valid values are CID_FORMAT and SIMPLE_FORMAT for Adobe
Composite and Simple font types respectivelyfont - font used to render the literal string data.
public int getLength()
public void setReference(Reference reference)
reference - parent object reference.public String getDecryptedLiteralString(SecurityManager securityManager)
securityManager - security manager associated with parent document.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||