Field Summary |
|
final public static byte[] | BS_ESCAPE BS escape characters. |
final public static byte[] | CR_ESCAPE CR escape characters. |
final public static byte[] | ESCAPE the escape character in strings. |
final public static byte[] | FF_ESCAPE FF escape characters. |
final public static byte[] | HEX_STRING_CLOSE One of the close string tokens. |
final public static byte[] | HEX_STRING_OPEN One of the open string tokens. |
final public static byte[] | HT_ESCAPE HT escape characters. |
final public static byte[] | LF_ESCAPE LF escape characters. |
final public static byte[] | STRING_CLOSE One of the close string tokens. |
final public static byte[] | STRING_OPEN One of the open string tokens. |
Method Summary |
|
public Object | accept(ICOSVisitor visitor) visitor pattern double dispatch method.
Parameters: visitor - The object to notify when visiting this object. |
public void | append(byte[] data) This will append a byte[] to the string. |
public void | append(int in) This will append a byte to the string. |
public static COSString | createFromHexString(String hex) This will create a COS string from a string of hex characters.
Parameters: hex - A hex string. |
public boolean | equals(Object obj) |
public byte[] | getBytes() This will get the bytes of the string. |
public String | getHexString() This will take this string and create a hex representation of the bytes that make the string. |
public String | getString() This will get the string that this object wraps. |
public int | hashCode() |
public void | reset() This will reset the internal buffer. |
public void | setForceLiteralForm(boolean v) Forces the string to be written in literal form instead of hexadecimal form. |
public String | toString() |
public void | writePDF(OutputStream output) This will output this string as a PDF object. |