CosPdfString
Inheritance: java.lang.Object, com.aspose.pdf.utils.publicdata.CosPdfPrimitive
public final class CosPdfString extends CosPdfPrimitive
This class represents Pdf String object.
Constructors
Constructor | Description |
---|---|
CosPdfString(String value) | Initializes a new instance of the CosPdfString class. |
CosPdfString(String value, boolean isHexadecimal) | Initializes a new instance of the CosPdfString class. |
Methods
Method | Description |
---|---|
isHexadecimal() | Gets a value indicating whether this instance is hexadecimal. |
getValue() | Gets the string (ANSII). |
toCosPdfString() | Tries cast this instance to CosPdfString. |
toString() | Returns a String that represents the current CosPdfString. |
hashCode() | Get hashcode for current object. |
equals(Object obj) | Determines that the specified object is equal to the current object. |
CosPdfString(String value)
public CosPdfString(String value)
Initializes a new instance of the CosPdfString class.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String | The value. |
CosPdfString(String value, boolean isHexadecimal)
public CosPdfString(String value, boolean isHexadecimal)
Initializes a new instance of the CosPdfString class.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String | The string. |
isHexadecimal | boolean | if set to true [is hexadecimal]. |
isHexadecimal()
public final boolean isHexadecimal()
Gets a value indicating whether this instance is hexadecimal.
Returns: boolean - boolean value. * true if this instance is hexadecimal; otherwise, false .
getValue()
public final String getValue()
Gets the string (ANSII).
Value: The string.
Returns: java.lang.String - String value
toCosPdfString()
public CosPdfString toCosPdfString()
Tries cast this instance to CosPdfString.
Returns: CosPdfString - null if instance is not CosPdfString else CosPdfString.
toString()
public String toString()
Returns a String that represents the current CosPdfString.
Returns: java.lang.String - A String that represents the current CosPdfString.
hashCode()
public int hashCode()
Get hashcode for current object.
Returns: int - A hash code for current object.
equals(Object obj)
public boolean equals(Object obj)
Determines that the specified object is equal to the current object.
Parameters:
Parameter | Type | Description |
---|---|---|
obj | java.lang.Object | The object to compare with current object |
Returns: boolean - true if specified object is equal to the current object; otherwise, false.