CosPdfString
Inheritance: java.lang.Object, com.aspose.pdf.dataeditor.CosPdfPrimitive com.aspose.pdf.dataeditor.CosPdfString, com.aspose.pdf.dataeditor.CosPdfPrimitive, com.aspose.pdf.dataeditor.CosPdfString
All Implemented Interfaces: ICosPdfPrimitive
public final class CosPdfString extends CosPdfPrimitive
This class represents Pdf String object.
Constructors
| Constructor | Description |
|---|---|
| CosPdfString | Initializes a new instance of the {@link CosPdfString} class. |
| CosPdfString | Initializes a new instance of the {@link CosPdfString} class. |
Methods
| Method | Description |
|---|---|
| equals | Determines that the specified object is equal to the current object. |
| getValue | Gets the string (ANSII). Value: The string. |
| hashCode | Get hashcode for current object. |
| isHexadecimal | Gets a value indicating whether this instance is hexadecimal. Value: {@code true} if this instance is hexadecimal; otherwise, {@code false}. |
| toCosPdfString | Tries cast this instance to {@link CosPdfString}. |
| toString | Returns a {@link String} that represents the current {@link CosPdfString}. |
CosPdfString
Initializes a new instance of the {@link CosPdfString} class.
CosPdfString
Initializes a new instance of the {@link CosPdfString} class.
equals
Determines that the specified object is equal to the current object.
getValue
public final String getValue()
Gets the string (ANSII). Value: The string.
Returns: String value
hashCode
public int hashCode()
Get hashcode for current object.
Returns: A hash code for current object.
isHexadecimal
public final boolean isHexadecimal()
Gets a value indicating whether this instance is hexadecimal. Value: {@code true} if this instance is hexadecimal; otherwise, {@code false}.
Returns: boolean value
toCosPdfString
public CosPdfString toCosPdfString()
Tries cast this instance to {@link CosPdfString}.
Returns: null if instance is not {@link CosPdfString} else {@link CosPdfString}.
toString
public String toString()
Returns a {@link String} that represents the current {@link CosPdfString}.
Returns: A {@link String} that represents the current {@link CosPdfString}.