Package com.oss.asn1
Class UTF8String16
java.lang.Object
com.oss.asn1.AbstractData
com.oss.asn1.AbstractString
com.oss.asn1.AbstractString16
com.oss.asn1.UTF8String16
- All Implemented Interfaces:
com.oss.asn1.Sizeable
,Serializable
,Cloneable
- Direct Known Subclasses:
ObjectIdentifierIri
,RelativeObjectIdentifierIri
The UTF8String16 class represents the ASN.1 UTF8String type with the
BMPSTRING directive.
- Since:
- ASN.1/Java 1.0-beta A
- See Also:
-
Field Summary
Fields inherited from class com.oss.asn1.AbstractData
EQUALS, GREATER_THAN, LESS_THAN
-
Constructor Summary
ConstructorsConstructorDescriptionThe default constructor.UTF8String16
(byte[] value) Construct from a byte array.UTF8String16
(char[] value) Construct from a char array.UTF8String16
(int[] value) Construct from an int array.UTF8String16
(String value) Construct from a String. -
Method Summary
Modifier and TypeMethodDescriptionfinal byte[]
Get the value of 'this' object as an array of bytes.int
getSize()
Used to get the number of Unicode code points of 'this' object.int
hashCode()
Returns a hash code for this objectfinal int[]
Get the value of 'this' object as an array of int.final void
setValue
(byte[] value) Set the value of 'this' object to a byte array.final void
setValue
(char[] value) Set the value of 'this' object to an array of char.final void
setValue
(int[] value) Set the value of 'this' object to an int array.final void
Set the value of 'this' object to a String.Methods inherited from class com.oss.asn1.AbstractString16
clone, delete, stringValue
Methods inherited from class com.oss.asn1.AbstractString
compareTo, equalTo, getLength
Methods inherited from class com.oss.asn1.AbstractData
equals, isEncodable, isPDU, isValid, toString, toString
-
Constructor Details
-
UTF8String16
public UTF8String16()The default constructor. -
UTF8String16
public UTF8String16(byte[] value) Construct from a byte array.- Parameters:
value
- the char array to set 'this' object to.
-
UTF8String16
Construct from a String.- Parameters:
value
- the String to set 'this' object to.
-
UTF8String16
public UTF8String16(char[] value) Construct from a char array.- Parameters:
value
- the char array to set 'this' object to.
-
UTF8String16
public UTF8String16(int[] value) Construct from an int array.- Parameters:
value
- the int array to set 'this' object to.
-
-
Method Details
-
setValue
Set the value of 'this' object to a String.- Overrides:
setValue
in classAbstractString16
- Parameters:
value
- the value to set 'this' object to.
-
setValue
public final void setValue(char[] value) Set the value of 'this' object to an array of char.- Overrides:
setValue
in classAbstractString16
- Parameters:
value
- the value to set 'this' object to.
-
setValue
public final void setValue(byte[] value) Set the value of 'this' object to a byte array.- Parameters:
value
- the value to set 'this' object to.
-
setValue
public final void setValue(int[] value) Set the value of 'this' object to an int array.- Parameters:
value
- the value to set 'this' object to.
-
byteArrayValue
public final byte[] byteArrayValue()Get the value of 'this' object as an array of bytes.- Returns:
- value of 'this' object as byte[].
-
intArrayValue
public final int[] intArrayValue()Get the value of 'this' object as an array of int.- Returns:
- int[] value of 'this' object.
-
getSize
public int getSize()Used to get the number of Unicode code points of 'this' object.- Specified by:
getSize
in interfacecom.oss.asn1.Sizeable
- Overrides:
getSize
in classAbstractString16
- Returns:
- the number of Unicode code points in 'this' string.
-
hashCode
public int hashCode()Returns a hash code for this object- Overrides:
hashCode
in classAbstractString16
- Returns:
- a hash code for this object
-