|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjp.bitmeister.asn1.codec.xer.XerDecoder
public class XerDecoder
XER (XML Encoding Rules) decoder.
XerDecoder
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 XML Encoding Rules
(XER).
ASN1Decoder
,
XerEncoder
Constructor Summary | |
---|---|
XerDecoder(java.lang.Class<? extends ASN1Module> module,
java.io.InputStream in)
Instantiates a XerDecoder . |
|
XerDecoder(java.io.InputStream in)
Instantiates a XerDecoder . |
Method Summary | ||
---|---|---|
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. |
|
jp.bitmeister.asn1.codec.xer.XerDecoder.DataDecoder |
visit(ANY data)
Visits the ANY data. |
|
jp.bitmeister.asn1.codec.xer.XerDecoder.DataDecoder |
visit(BIT_STRING data)
Visits the BIT_STRING data. |
|
jp.bitmeister.asn1.codec.xer.XerDecoder.DataDecoder |
visit(BOOLEAN data)
Visits the BOOLEAN data. |
|
jp.bitmeister.asn1.codec.xer.XerDecoder.DataDecoder |
visit(CHOICE data)
Visits the CHOICE data. |
|
jp.bitmeister.asn1.codec.xer.XerDecoder.DataDecoder |
visit(ENUMERATED data)
Visits the ENUMERATED data. |
|
jp.bitmeister.asn1.codec.xer.XerDecoder.DataDecoder |
visit(INTEGER data)
Visits the INTEGER data. |
|
jp.bitmeister.asn1.codec.xer.XerDecoder.DataDecoder |
visit(NULL data)
Visits the NULL data. |
|
jp.bitmeister.asn1.codec.xer.XerDecoder.DataDecoder |
visit(OBJECT_IDENTIFIER data)
Visits the OBJECT_IDENTIFIER data. |
|
jp.bitmeister.asn1.codec.xer.XerDecoder.DataDecoder |
visit(OCTET_STRING data)
Visits the OCTET_STRING data. |
|
jp.bitmeister.asn1.codec.xer.XerDecoder.DataDecoder |
visit(REAL data)
Visits the REAL data. |
|
jp.bitmeister.asn1.codec.xer.XerDecoder.DataDecoder |
visit(RELATIVE_OID data)
Visits the RELATIVE_OID data. |
|
jp.bitmeister.asn1.codec.xer.XerDecoder.DataDecoder |
visit(SEQUENCE_OF<? extends ASN1Type> data)
Visits the SEQUENCE_OF data. |
|
jp.bitmeister.asn1.codec.xer.XerDecoder.DataDecoder |
visit(SEQUENCE data)
Visits the SEQUENCE data. |
|
jp.bitmeister.asn1.codec.xer.XerDecoder.DataDecoder |
visit(SET_OF<? extends ASN1Type> data)
Visits the SET_OF data. |
|
jp.bitmeister.asn1.codec.xer.XerDecoder.DataDecoder |
visit(SET data)
Visits the SET data. |
|
jp.bitmeister.asn1.codec.xer.XerDecoder.DataDecoder |
visit(StringType data)
Visits the StringType data. |
|
jp.bitmeister.asn1.codec.xer.XerDecoder.DataDecoder |
visit(TimeType data)
Visits the TimeType data. |
|
jp.bitmeister.asn1.codec.xer.XerDecoder.DataDecoder |
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 XerDecoder(java.io.InputStream in)
XerDecoder
.
in
- The InputStream
to be read.public XerDecoder(java.lang.Class<? extends ASN1Module> module, java.io.InputStream in)
XerDecoder
.
in
- The InputStream
to be read.Method Detail |
---|
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 ASN1Type decode() throws ASN1DecodingException
ASN1Decoder
decode
in interface ASN1Decoder
ASN1DecodingException
- Thrown when an error occurred while the decoding process.public jp.bitmeister.asn1.codec.xer.XerDecoder.DataDecoder visit(BOOLEAN data)
ASN1Visitor
BOOLEAN
data.
visit
in interface ASN1Visitor<jp.bitmeister.asn1.codec.xer.XerDecoder.DataDecoder,org.xml.sax.SAXException>
data
- The data to be visited.
public jp.bitmeister.asn1.codec.xer.XerDecoder.DataDecoder visit(INTEGER data)
ASN1Visitor
INTEGER
data.
visit
in interface ASN1Visitor<jp.bitmeister.asn1.codec.xer.XerDecoder.DataDecoder,org.xml.sax.SAXException>
data
- The data to be visited.
public jp.bitmeister.asn1.codec.xer.XerDecoder.DataDecoder visit(BIT_STRING data)
ASN1Visitor
BIT_STRING
data.
visit
in interface ASN1Visitor<jp.bitmeister.asn1.codec.xer.XerDecoder.DataDecoder,org.xml.sax.SAXException>
data
- The data to be visited.
public jp.bitmeister.asn1.codec.xer.XerDecoder.DataDecoder visit(OCTET_STRING data)
ASN1Visitor
OCTET_STRING
data.
visit
in interface ASN1Visitor<jp.bitmeister.asn1.codec.xer.XerDecoder.DataDecoder,org.xml.sax.SAXException>
data
- The data to be visited.
public jp.bitmeister.asn1.codec.xer.XerDecoder.DataDecoder visit(NULL data)
ASN1Visitor
NULL
data.
visit
in interface ASN1Visitor<jp.bitmeister.asn1.codec.xer.XerDecoder.DataDecoder,org.xml.sax.SAXException>
data
- The data to be visited.
public jp.bitmeister.asn1.codec.xer.XerDecoder.DataDecoder visit(OBJECT_IDENTIFIER data)
ASN1Visitor
OBJECT_IDENTIFIER
data.
visit
in interface ASN1Visitor<jp.bitmeister.asn1.codec.xer.XerDecoder.DataDecoder,org.xml.sax.SAXException>
data
- The data to be visited.
public jp.bitmeister.asn1.codec.xer.XerDecoder.DataDecoder visit(REAL data)
ASN1Visitor
REAL
data.
visit
in interface ASN1Visitor<jp.bitmeister.asn1.codec.xer.XerDecoder.DataDecoder,org.xml.sax.SAXException>
data
- The data to be visited.
public jp.bitmeister.asn1.codec.xer.XerDecoder.DataDecoder visit(ENUMERATED data)
ASN1Visitor
ENUMERATED
data.
visit
in interface ASN1Visitor<jp.bitmeister.asn1.codec.xer.XerDecoder.DataDecoder,org.xml.sax.SAXException>
data
- The data to be visited.
public jp.bitmeister.asn1.codec.xer.XerDecoder.DataDecoder visit(RELATIVE_OID data)
ASN1Visitor
RELATIVE_OID
data.
visit
in interface ASN1Visitor<jp.bitmeister.asn1.codec.xer.XerDecoder.DataDecoder,org.xml.sax.SAXException>
data
- The data to be visited.
public jp.bitmeister.asn1.codec.xer.XerDecoder.DataDecoder visit(ANY data)
ASN1Visitor
ANY
data.
visit
in interface ASN1Visitor<jp.bitmeister.asn1.codec.xer.XerDecoder.DataDecoder,org.xml.sax.SAXException>
data
- The data to be visited.
public jp.bitmeister.asn1.codec.xer.XerDecoder.DataDecoder visit(CHOICE data)
ASN1Visitor
CHOICE
data.
visit
in interface ASN1Visitor<jp.bitmeister.asn1.codec.xer.XerDecoder.DataDecoder,org.xml.sax.SAXException>
data
- The data to be visited.
public jp.bitmeister.asn1.codec.xer.XerDecoder.DataDecoder visit(SEQUENCE_OF<? extends ASN1Type> data)
ASN1Visitor
SEQUENCE_OF
data.
visit
in interface ASN1Visitor<jp.bitmeister.asn1.codec.xer.XerDecoder.DataDecoder,org.xml.sax.SAXException>
data
- The data to be visited.
public jp.bitmeister.asn1.codec.xer.XerDecoder.DataDecoder visit(SEQUENCE data)
ASN1Visitor
SEQUENCE
data.
visit
in interface ASN1Visitor<jp.bitmeister.asn1.codec.xer.XerDecoder.DataDecoder,org.xml.sax.SAXException>
data
- The data to be visited.
public jp.bitmeister.asn1.codec.xer.XerDecoder.DataDecoder visit(SET_OF<? extends ASN1Type> data)
ASN1Visitor
SET_OF
data.
visit
in interface ASN1Visitor<jp.bitmeister.asn1.codec.xer.XerDecoder.DataDecoder,org.xml.sax.SAXException>
data
- The data to be visited.
public jp.bitmeister.asn1.codec.xer.XerDecoder.DataDecoder visit(SET data)
ASN1Visitor
SET
data.
visit
in interface ASN1Visitor<jp.bitmeister.asn1.codec.xer.XerDecoder.DataDecoder,org.xml.sax.SAXException>
data
- The data to be visited.
public jp.bitmeister.asn1.codec.xer.XerDecoder.DataDecoder visit(StringType data)
ASN1Visitor
StringType
data.
visit
in interface ASN1Visitor<jp.bitmeister.asn1.codec.xer.XerDecoder.DataDecoder,org.xml.sax.SAXException>
data
- The data to be visited.
public jp.bitmeister.asn1.codec.xer.XerDecoder.DataDecoder visit(TimeType data)
ASN1Visitor
TimeType
data.
visit
in interface ASN1Visitor<jp.bitmeister.asn1.codec.xer.XerDecoder.DataDecoder,org.xml.sax.SAXException>
data
- The data to be visited.
public jp.bitmeister.asn1.codec.xer.XerDecoder.DataDecoder visit(UnknownType data) throws org.xml.sax.SAXException
ASN1Visitor
UnknownType
data.
visit
in interface ASN1Visitor<jp.bitmeister.asn1.codec.xer.XerDecoder.DataDecoder,org.xml.sax.SAXException>
data
- The data to be visited.
org.xml.sax.SAXException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |