Package com.oss.asn1
Class AbstractString16
java.lang.Object
com.oss.asn1.AbstractData
com.oss.asn1.AbstractString
com.oss.asn1.AbstractString16
- All Implemented Interfaces:
com.oss.asn1.Sizeable
,Serializable
,Cloneable
- Direct Known Subclasses:
BMPString
,GeneralString
,GraphicString
,IA5String
,ISO8601String
,NumericString
,ObjectDescriptor
,PrintableString
,TeletexString
,UTF8String16
,VideotexString
,VisibleString
The AbstractString16 class implements the functionality common to all
ASN.1 CharacterString types with one or two bytes per character.
This abstract base class is a public class, but it is not considered as being part of the public API and should not be directly referenced in your application programs.
- Since:
- ASN.1/Java 6.0
- See Also:
-
Field Summary
Fields inherited from class com.oss.asn1.AbstractData
EQUALS, GREATER_THAN, LESS_THAN
-
Method Summary
Modifier and TypeMethodDescriptionclone()
Clone 'this' object.void
delete()
Destroy the instance of the AbstractData.int
getSize()
Used to get the length of 'this' object in characters.int
hashCode()
Returns a hash code for this objectvoid
setValue
(char[] value) Set the value of 'this' object to an array of char.void
Set the value of 'this' object to a String.final String
Get the value of 'this' object as a String.Methods inherited from class com.oss.asn1.AbstractString
compareTo, equalTo, getLength
Methods inherited from class com.oss.asn1.AbstractData
equals, getTypeName, isEncodable, isPDU, isValid, toString, toString
-
Method Details
-
hashCode
public int hashCode()Returns a hash code for this object- Overrides:
hashCode
in classAbstractString
- Returns:
- a hash code for this object
-
setValue
Set the value of 'this' object to a String.- Specified by:
setValue
in classAbstractString
- Parameters:
value
- the value to set 'this' object to.
-
setValue
public void setValue(char[] value) Set the value of 'this' object to an array of char.- Specified by:
setValue
in classAbstractString
- Parameters:
value
- the value to set 'this' object to.
-
stringValue
Get the value of 'this' object as a String.- Specified by:
stringValue
in classAbstractString
- Returns:
- the String value of 'this' object.
-
getSize
public int getSize()Used to get the length of 'this' object in characters.- Specified by:
getSize
in interfacecom.oss.asn1.Sizeable
- Specified by:
getSize
in classAbstractString
- Returns:
- the length of 'this' string.
-
clone
Clone 'this' object.- Returns:
- deep copy of 'this' object.
-
delete
public void delete()Destroy the instance of the AbstractData. The contract of this method is to facilitate garbage collection by explicit destruction of the data that is no longer needed.- Overrides:
delete
in classAbstractData
-