Java Doc for PdfName.java in » PDF » pdf-itext » com » lowagie » text » pdf » Java Source Code / Java DocumentationJava Source Code and Java Documentation
PdfName is an object that can be used as a name in a PDF-file.
A name, like a string, is a sequence of characters. It must begin with a slash
followed by a sequence of ASCII characters in the range 32 through 136 except
%, (, ), [, ], <, >, {, }, / and #. Any character except 0x00 may be included
in a name by writing its twocharacter hex code, preceded by #. The maximum number
of characters in a name is 127.
This object is described in the 'Portable Document Format Reference Manual version 1.7'
section 3.2.4 (page 56-58).
Constructs a new PdfName. The name length will be checked.
Parameters: name - the new name
PdfName
public PdfName(String name, boolean lengthCheck)(Code)
Constructs a new PdfName.
Parameters: name - the new name Parameters: lengthCheck - if true check the lenght validity, if false the name canhave any length
Compares this object with the specified object for order. Returns a
negative integer, zero, or a positive integer as this object is less
than, equal to, or greater than the specified object.
Parameters: object - the Object to be compared. a negative integer, zero, or a positive integer as this objectis less than, equal to, or greater than the specified object. throws: ClassCastException - if the specified object's type prevents itfrom being compared to this Object.
Indicates whether some other object is "equal to" this one.
Parameters: obj - the reference object with which to compare. true if this object is the same as the objargument; false otherwise.
Returns a hash code value for the object. This method is
supported for the benefit of hashtables such as those provided by
java.util.Hashtable.
a hash code value for this object.
Fields inherited from com.lowagie.text.pdf.PdfObject