Package com.oss.asn1

Class AbstractString32

All Implemented Interfaces:
com.oss.asn1.Sizeable, Serializable, Cloneable
Direct Known Subclasses:
UniversalString, UTF8String32

public abstract class AbstractString32 extends AbstractString implements com.oss.asn1.Sizeable
The AbstractString32 class implements the functionality common to all ASN.1 CharacterString types with four 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 program.

Since:
ASN.1/Java 1.0-beta A
See Also:
  • Method Details

    • setValue

      public final void setValue(int[] value)
      Set the value of 'this' object to an int[].
      Parameters:
      value - the int[] value to set 'this' object to.
    • setValue

      public final void setValue(String value) throws IllegalArgumentException
      Set the value of 'this' object to a String.
      Specified by:
      setValue in class AbstractString
      Parameters:
      value - the String value to set 'this' object to.
      Throws:
      IllegalArgumentException
    • setValue

      public final void setValue(char[] value) throws IllegalArgumentException
      Set the value of 'this' object to an array of char.
      Specified by:
      setValue in class AbstractString
      Parameters:
      value - the char[] value to set 'this' object to.
      Throws:
      IllegalArgumentException
    • intArrayValue

      public final int[] intArrayValue()
      Get the value of 'this' object as an array of int.
      Returns:
      int[] value of 'this' object.
    • stringValue

      public final String stringValue()
      Get the value of 'this' object as a String. Note that narrowing of the data from a 4-byte character string to a 2-byte character string may occur.
      Specified by:
      stringValue in class AbstractString
      Returns:
      value of 'this' object as a String.
    • getSize

      public final 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.
    • hashCode

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

      public Object clone()
      Clone 'this' object.
      Overrides:
      clone in class AbstractData
      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