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
The AbstractBinary class is the common ancestor of BitString and
OctetString classes.
- Since:
- ASN.1/Java 1.0-beta A
- See Also:
-
Field Summary
Fields inherited from class com.oss.asn1.AbstractData
EQUALS, GREATER_THAN, LESS_THAN
-
Method Summary
Modifier and TypeMethodDescriptionfinal byte[]
Get the value of 'this' object as an array of bytes.clone()
Clone 'this' object.void
delete()
Destroy the instance of the AbstractData.int
hashCode()
Returns a hash code for this objectvoid
setValue
(byte[] value) Set the value of 'this' object to the value of the Java type byte[].Methods inherited from class com.oss.asn1.AbstractData
abstractEqualTo, equals, getTypeInfo, isEncodable, isPDU, isValid, toString, toString
-
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
Clone 'this' object.- Overrides:
clone
in classAbstractData
- Returns:
- deep copy of 'this' object.
-
hashCode
public int hashCode()Returns a hash code for this object- Overrides:
hashCode
in classAbstractData
- 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 classAbstractData
-