|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjp.bitmeister.asn1.type.ASN1Type
jp.bitmeister.asn1.type.UnknownType
public final class UnknownType
Represents a type that does not have definition.
When a decoder meets a source data with a tag that is not registered to
ASN1Modules
, decoder decodes the data as an UnknownType
. An
instance of this class contains a tag class, a tag number and an array of
byte
represents row contents octets.
ASN1Modules
,
BerDecoder
Field Summary |
---|
Fields inherited from class jp.bitmeister.asn1.type.ASN1Type |
---|
stringBuilder |
Constructor Summary | |
---|---|
UnknownType(ASN1TagClass tagClass,
int tagNumber)
Instantiate with a tag class and a tag number. |
Method Summary | ||
---|---|---|
|
accept(ASN1Visitor<R,E> visitor)
Accepts the ASN1Visitor and calls a visit method of the
visitor. |
|
void |
clear()
Clears the value of this ASN.1 data. |
|
java.lang.Object |
clone()
Creates and returns a copy of this ASN.1 data. |
|
int |
hashCode()
Returns a hash code value for this ASN.1 data. |
|
boolean |
hasValue()
Tests if this ASN.1 data has value. |
|
void |
set(byte[] value)
Set contents octets. |
|
ASN1TagClass |
tagClass()
Returns tag class. |
|
int |
tagNumber()
Returns tag number. |
|
byte[] |
value()
Returns contents octets. |
|
boolean |
valueEquals(java.lang.Object other)
Tests if the value of this ASN.1 data equals the value of the other ASN.1 data. |
Methods inherited from class jp.bitmeister.asn1.type.ASN1Type |
---|
equals, instantiate, matches, specification, toString, validate |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public UnknownType(ASN1TagClass tagClass, int tagNumber)
tagClass
- ASN.1 tag class.tagNumber
- ASN.1 tag number.Method Detail |
---|
public void set(byte[] value)
value
- The contents octets.public byte[] value()
public ASN1TagClass tagClass()
public int tagNumber()
public void clear()
ASN1Type
clear
in class ASN1Type
public boolean hasValue()
ASN1Type
hasValue
in class ASN1Type
true
when this ASN.1 data has value.public <R,E extends java.lang.Throwable> R accept(ASN1Visitor<R,E> visitor) throws E extends java.lang.Throwable
ASN1Type
ASN1Visitor
and calls a visit
method of the
visitor.
accept
in class ASN1Type
visitor
- The visitor.
E
- When an error occured in the visit
method of the
visitor.
E extends java.lang.Throwable
public boolean valueEquals(java.lang.Object other)
ASN1Type
true
when they have same value even if
their types are different.
valueEquals
in class ASN1Type
other
- The ASN.1 data which to be compared.
true
when they have same value.public int hashCode()
ASN1Type
hashCode
in class ASN1Type
Object.hashCode()
public java.lang.Object clone()
ASN1Type
clone
in class ASN1Type
Object.clone()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |