|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjp.bitmeister.asn1.codec.ber.BerDecoder
public class BerDecoder
BER (Basic Encoding Rules) decoder.
BerDecoder
is an implementation of ASN1Decoder
. It reads a
number of bytes from an InputStream
that is specified when a decoder
is instantiated, and decodes them to an ASN.1 data with Basic Encoding Rules
(BER).
ASN1Decoder
,
DerEncoder
Constructor Summary | |
---|---|
BerDecoder(java.io.InputStream in)
Instantiates a BerDecoder . |
Method Summary | ||
---|---|---|
int |
count()
Returns how many bytes were read from the InputStream . |
|
ASN1Type |
decode()
Decodes source data to an ASN.1 data. |
|
|
decode(java.lang.Class<T> type)
Decodes source data and sets these decoded values to an instance of the ASN.1 type. |
|
void |
visit(ANY data)
Visits the ANY data. |
|
void |
visit(BIT_STRING data)
Visits the BIT_STRING data. |
|
void |
visit(BOOLEAN data)
Visits the BOOLEAN data. |
|
void |
visit(CHOICE data)
Visits the CHOICE data. |
|
void |
visit(ENUMERATED data)
Visits the ENUMERATED data. |
|
void |
visit(INTEGER data)
Visits the INTEGER data. |
|
void |
visit(NULL data)
Visits the NULL data. |
|
void |
visit(OBJECT_IDENTIFIER data)
Visits the OBJECT_IDENTIFIER data. |
|
void |
visit(OCTET_STRING data)
Visits the OCTET_STRING data. |
|
void |
visit(REAL data)
Visits the REAL data. |
|
void |
visit(SEQUENCE_OF<? extends ASN1Type> data)
Visits the SEQUENCE_OF data. |
|
void |
visit(SEQUENCE data)
Visits the SEQUENCE data. |
|
void |
visit(SET_OF<? extends ASN1Type> data)
Visits the SET_OF data. |
|
void |
visit(SET data)
Visits the SET data. |
|
void |
visit(StringType data)
Visits the StringType data. |
|
void |
visit(TimeType data)
Visits the TimeType data. |
|
void |
visit(UnknownType data)
Visits the UnknownType data. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BerDecoder(java.io.InputStream in)
BerDecoder
.
in
- The InputStream
to be read.Method Detail |
---|
public ASN1Type decode() throws ASN1DecodingException
ASN1Decoder
decode
in interface ASN1Decoder
ASN1DecodingException
- Thrown when an error occurred while the decoding process.public <T extends ASN1Type> T decode(java.lang.Class<T> type) throws ASN1DecodingException
ASN1Decoder
decode
in interface ASN1Decoder
T
- Indicates the ASN.1 type.type
- The class object of the ASN.1 type.
ASN1DecodingException
- Thrown when an error occurred while the decoding process.public int count()
InputStream
.
public void visit(BOOLEAN data) throws ASN1DecodingException
ASN1Visitor
BOOLEAN
data.
visit
in interface ASN1Visitor<ASN1DecodingException>
data
- The data to be visited.
ASN1DecodingException
public void visit(INTEGER data) throws ASN1DecodingException
ASN1Visitor
INTEGER
data.
visit
in interface ASN1Visitor<ASN1DecodingException>
data
- The data to be visited.
ASN1DecodingException
public void visit(ENUMERATED data) throws ASN1DecodingException
ASN1Visitor
ENUMERATED
data.
visit
in interface ASN1Visitor<ASN1DecodingException>
data
- The data to be visited.
ASN1DecodingException
public void visit(REAL data) throws ASN1DecodingException
ASN1Visitor
REAL
data.
visit
in interface ASN1Visitor<ASN1DecodingException>
data
- The data to be visited.
ASN1DecodingException
public void visit(BIT_STRING data) throws ASN1DecodingException
ASN1Visitor
BIT_STRING
data.
visit
in interface ASN1Visitor<ASN1DecodingException>
data
- The data to be visited.
ASN1DecodingException
public void visit(OCTET_STRING data) throws ASN1DecodingException
ASN1Visitor
OCTET_STRING
data.
visit
in interface ASN1Visitor<ASN1DecodingException>
data
- The data to be visited.
ASN1DecodingException
public void visit(NULL data) throws ASN1DecodingException
ASN1Visitor
NULL
data.
visit
in interface ASN1Visitor<ASN1DecodingException>
data
- The data to be visited.
ASN1DecodingException
public void visit(SEQUENCE data) throws ASN1DecodingException
ASN1Visitor
SEQUENCE
data.
visit
in interface ASN1Visitor<ASN1DecodingException>
data
- The data to be visited.
ASN1DecodingException
public void visit(SEQUENCE_OF<? extends ASN1Type> data) throws ASN1DecodingException
ASN1Visitor
SEQUENCE_OF
data.
visit
in interface ASN1Visitor<ASN1DecodingException>
data
- The data to be visited.
ASN1DecodingException
public void visit(SET data) throws ASN1DecodingException
ASN1Visitor
SET
data.
visit
in interface ASN1Visitor<ASN1DecodingException>
data
- The data to be visited.
ASN1DecodingException
public void visit(SET_OF<? extends ASN1Type> data) throws ASN1DecodingException
ASN1Visitor
SET_OF
data.
visit
in interface ASN1Visitor<ASN1DecodingException>
data
- The data to be visited.
ASN1DecodingException
public void visit(CHOICE data) throws ASN1DecodingException
ASN1Visitor
CHOICE
data.
visit
in interface ASN1Visitor<ASN1DecodingException>
data
- The data to be visited.
ASN1DecodingException
public void visit(OBJECT_IDENTIFIER data) throws ASN1DecodingException
ASN1Visitor
OBJECT_IDENTIFIER
data.
visit
in interface ASN1Visitor<ASN1DecodingException>
data
- The data to be visited.
ASN1DecodingException
public void visit(StringType data) throws ASN1DecodingException
ASN1Visitor
StringType
data.
visit
in interface ASN1Visitor<ASN1DecodingException>
data
- The data to be visited.
ASN1DecodingException
public void visit(TimeType data) throws ASN1DecodingException
ASN1Visitor
TimeType
data.
visit
in interface ASN1Visitor<ASN1DecodingException>
data
- The data to be visited.
ASN1DecodingException
public void visit(ANY data) throws ASN1DecodingException
ASN1Visitor
ANY
data.
visit
in interface ASN1Visitor<ASN1DecodingException>
data
- The data to be visited.
ASN1DecodingException
public void visit(UnknownType data) throws ASN1DecodingException
ASN1Visitor
UnknownType
data.
visit
in interface ASN1Visitor<ASN1DecodingException>
data
- The data to be visited.
ASN1DecodingException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |