Package com.oss.asn1

Class 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

public abstract class AbstractString16 extends AbstractString implements com.oss.asn1.Sizeable
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:
  • Method Details

    • hashCode

      public int hashCode()
      Returns a hash code for this object
      Overrides:
      hashCode in class AbstractString
      Returns:
      a hash code for this object
    • setValue

      public void setValue(String value)
      Set the value of 'this' object to a String.
      Specified by:
      setValue in class AbstractString
      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 class AbstractString
      Parameters:
      value - the value to set 'this' object to.
    • stringValue

      public final String stringValue()
      Get the value of 'this' object as a String.
      Specified by:
      stringValue in class AbstractString
      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 interface com.oss.asn1.Sizeable
      Specified by:
      getSize in class AbstractString
      Returns:
      the length of 'this' string.
    • clone

      public Object 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 class AbstractData