Package com.oss.asn1

Class AbstractBinary

java.lang.Object
com.oss.asn1.AbstractData
com.oss.asn1.AbstractBinary
All Implemented Interfaces:
Serializable, Cloneable
Direct Known Subclasses:
BitString, OctetString

public abstract class AbstractBinary extends AbstractData
The AbstractBinary class is the common ancestor of BitString and OctetString classes.
Since:
ASN.1/Java 1.0-beta A
See Also:
  • Method Details

    • setValue

      public void setValue(byte[] value)
      Set the value of 'this' object to the value of the Java type byte[].
      Parameters:
      value - the byte array to set this object to.
    • byteArrayValue

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

      public Object clone()
      Clone 'this' object.
      Overrides:
      clone in class AbstractData
      Returns:
      deep copy of 'this' object.
    • hashCode

      public int hashCode()
      Returns a hash code for this object
      Overrides:
      hashCode in class AbstractData
      Returns:
      a hash code for 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