public final class CosPdfString extends CosPdfPrimitive
This class represents Pdf String object.
Constructor and 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. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Determines that the specified object is equal to the current object.
|
String |
getValue()
Gets the string (ANSII).
|
int |
hashCode()
Get hashcode for current object.
|
boolean |
isHexadecimal()
Gets a value indicating whether this instance is hexadecimal.
|
CosPdfString |
toCosPdfString()
Tries cast this instance to
CosPdfString . |
String |
toString()
Returns a
String that represents the current CosPdfString . |
toCosPdfBoolean, toCosPdfName, toCosPdfNumber
public CosPdfString(String value)
Initializes a new instance of the CosPdfString
class.
value
- The value.public CosPdfString(String value, boolean isHexadecimal)
Initializes a new instance of the CosPdfString
class.
value
- The string.isHexadecimal
- if set to true
[is hexadecimal].public final boolean isHexadecimal()
Gets a value indicating whether this instance is hexadecimal.
true
if this instance is hexadecimal; otherwise, false
.public final String getValue()
Gets the string (ANSII).
Value: The string.public CosPdfString toCosPdfString()
Tries cast this instance to CosPdfString
.
toCosPdfString
in interface ICosPdfPrimitive
toCosPdfString
in class CosPdfPrimitive
CosPdfString
else CosPdfString
.public String toString()
Returns a String
that represents the current CosPdfString
.
toString
in interface ICosPdfPrimitive
toString
in class Object
String
that represents the current CosPdfString
.public int hashCode()
Get hashcode for current object.
Copyright © 2024 Aspose. All Rights Reserved.