Package com.oss.asn1

Class UTF8String32

All Implemented Interfaces:
com.oss.asn1.Sizeable, Serializable, Cloneable

public class UTF8String32 extends AbstractString32
The UTF8String32 class represents the ASN.1 UTF8String type with the UNIVERSALSTRING directive.
Since:
ASN.1/Java 6.0
See Also:
  • Constructor Details

    • UTF8String32

      public UTF8String32()
      The default constructor.
    • UTF8String32

      public UTF8String32(int[] value)
      Construct from an int array.
      Parameters:
      value - the int array to set 'this' object to.
    • UTF8String32

      public UTF8String32(String value)
      Construct from a String.
      Parameters:
      value - the String to set 'this' object to.
    • UTF8String32

      public UTF8String32(char[] value)
      Construct from a char array.
      Parameters:
      value - the char array to set 'this' object to.
    • UTF8String32

      public UTF8String32(byte[] value)
      Construct from a byte array.
      Parameters:
      value - the char array to set 'this' object to.
  • Method Details

    • byteArrayValue

      public final byte[] byteArrayValue()
      Get the value of 'this' object as an array of bytes.
      Returns:
      value of 'this' object as byte[].
    • setValue

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

      public UTF8String32 clone()
      Clone 'this' object.
      Overrides:
      clone in class AbstractString32
      Returns:
      deep copy of 'this' object.
    • getTypeName

      public String getTypeName()
      Returns the name of ASN.1 type this java class represents.
      Overrides:
      getTypeName in class AbstractData
      Returns:
      the name of the ASN.1 type.