Package com.oss.asn1

Class HugeRestrictedString

java.lang.Object
com.oss.asn1.AbstractData
com.oss.asn1.HugeRestrictedString
All Implemented Interfaces:
com.oss.asn1.Sizeable, Serializable, Cloneable
Direct Known Subclasses:
HugeBMPString, HugeString, HugeUTF8String16

public abstract class HugeRestrictedString extends AbstractData implements com.oss.asn1.Sizeable
The HugeRestrictedString class provides a common ancestor for the ASN.1/Java HugeString, HugeBMPString and HugeUTF8String16 string classes.
Since:
ASN.1/Java 1.4 beta A
See Also:
  • Method Details

    • getSize

      public int getSize()
      Used to get the length of characters in 'this' object.
      Specified by:
      getSize in interface com.oss.asn1.Sizeable
      Returns:
      the length of 'this' string.
    • setValue

      public void setValue(CharStorage value)
      Set the value of 'this' object to a CharStorage object.
      Parameters:
      value - the value to set 'this' object to.
    • charStorageValue

      public CharStorage charStorageValue()
      Get the value of 'this' object as a CharStorage object.
      Returns:
      the String value of 'this' object.
    • equalTo

      public boolean equalTo(HugeRestrictedString that)
      Compare 'this' HugeRestrictedString object to another HugeRestrictedString object to see if their contents are the same.
      Parameters:
      that - the HugeRestrictedString object to compare 'this' object to.
      Returns:
      true if contents of both objects are the same.
    • 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