public abstract class Asn1Object extends Object
Modifier | Constructor and Description |
---|---|
protected |
Asn1Object(int tag,
Asn1Class asn1Class,
boolean constructed,
int length) |
protected |
Asn1Object(int tag,
Asn1Class asn1Class,
boolean constructed,
int length,
ByteBuffer payload) |
Modifier and Type | Method and Description |
---|---|
Asn1Class |
getAsn1Class() |
abstract Collection<Asn1Object> |
getChildren() |
protected int |
getEndOfData() |
int |
getLength() |
ByteBuffer |
getPayload() |
protected ByteBuffer |
getPayload(int position) |
int |
getTag() |
boolean |
isConstructed() |
boolean |
isIndefiniteLength() |
boolean |
matches(Asn1ID id) |
protected void |
setEndOfData(int position) |
String |
toSimpleString() |
String |
toString()
Returns a string representation of the object.
|
protected Asn1Object(int tag, Asn1Class asn1Class, boolean constructed, int length)
protected Asn1Object(int tag, Asn1Class asn1Class, boolean constructed, int length, ByteBuffer payload)
public int getTag()
public Asn1Class getAsn1Class()
public boolean isConstructed()
public boolean isIndefiniteLength()
public int getLength()
public ByteBuffer getPayload()
protected ByteBuffer getPayload(int position)
protected void setEndOfData(int position)
protected int getEndOfData()
public boolean matches(Asn1ID id)
public String toSimpleString()
public abstract Collection<Asn1Object> getChildren()
public String toString()
Object
toString
method returns a string that
"textually represents" this object. The result should
be a concise but informative representation that is easy for a
person to read.
It is recommended that all subclasses override this method.
The toString
method for class Object
returns a string consisting of the name of the class of which the
object is an instance, the at-sign character `@
', and
the unsigned hexadecimal representation of the hash code of the
object. In other words, this method returns a string equal to the
value of:
getClass().getName() + '@' + Integer.toHexString(hashCode())