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

ConstructorDescription
CosPdfStringInitializes a new instance of the {@link CosPdfString} class.
CosPdfStringInitializes a new instance of the {@link CosPdfString} class.

Methods

MethodDescription
equalsDetermines that the specified object is equal to the current object.
getValueGets the string (ANSII). Value: The string.
hashCodeGet hashcode for current object.
isHexadecimalGets a value indicating whether this instance is hexadecimal. Value: {@code true} if this instance is hexadecimal; otherwise, {@code false}.
toCosPdfStringTries cast this instance to {@link CosPdfString}.
toStringReturns 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}.