|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface StringObject
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 | |
|---|---|
java.lang.String |
getDecryptedLiteralString(SecurityManager securityManager)
Gets the decrypted literal string value of the data using the key provided by the security manager. |
java.lang.String |
getHexString()
Gets a hexadecimal String representation of this object's data. |
java.lang.StringBuilder |
getHexStringBuffer()
Gets a hexadecimal StringBuffer representation of this objects data. |
int |
getLength()
The length of the underlying objects data. |
java.lang.String |
getLiteralString()
Gets a literal String representation of this object's data. |
java.lang.StringBuilder |
getLiteralStringBuffer()
Gets a literal StringBuffer representation of this object's data. |
java.lang.StringBuilder |
getLiteralStringBuffer(int fontFormat,
FontFile font)
Gets a literal String representation of this objects data using the specified font and format. |
Reference |
getReference()
Sets the parent PDF object's reference. |
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. |
java.lang.String |
toString()
Returns a string representation of the object. |
| Method Detail |
|---|
java.lang.String toString()
Returns a string representation of the object.
toString in class java.lang.Objectjava.lang.StringBuilder getLiteralStringBuffer()
Gets a literal StringBuffer representation of this object's data.
java.lang.String getLiteralString()
Gets a literal String representation of this object's data.
java.lang.StringBuilder getHexStringBuffer()
Gets a hexadecimal StringBuffer representation of this objects data.
java.lang.String getHexString()
Gets a hexadecimal String representation of this object's data.
int getUnsignedInt(int start,
int offset)
start - the beginning index, inclusive.offset - the number of string characters to read.
java.lang.StringBuilder getLiteralStringBuffer(int fontFormat,
FontFile 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.
int getLength()
void setReference(Reference reference)
reference - parent object reference.Reference getReference()
java.lang.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 | ||||||||