public class Asn1OerDecodeBuffer extends Asn1DecodeBitBuffer
mTraceHandlermByteCountcontext, mTypeCode| Constructor and Description |
|---|
Asn1OerDecodeBuffer(byte[] msgdata)
This constructor creates a BER decode buffer object that
references an encoded ASN.1 message.
|
Asn1OerDecodeBuffer(java.io.InputStream istream)
This constructor creates a BER decode buffer object that
references an encoded ASN.1 message.
|
| Modifier and Type | Method and Description |
|---|---|
int |
decodeEnumValue()
Decode enumerated value encoded in OER.
|
long |
decodeIntSigned()
Decode an integer value as a variable length, signed integer, including
decoding the length, according to OER.
|
long |
decodeIntSigned(int octets)
Decode a signed integer value (2's complement form), of the given length.
|
long |
decodeIntUnsigned()
Decode an integer value as a variable length, unsigned integer, including
decoding the length, according to OER.
|
long |
decodeIntUnsigned(int octets)
Decode an unsigned integer value (a binary integer, not 2's complement
form), of the given length.
|
int |
decodeLength()
Decode OER length determinant and return the decoded value.
|
int |
decodeQuantity()
Decode an OER quantity (used for SEQUENCE-OF and SET-OF)
|
void |
decodeTag(Asn1Tag tag)
Decode a tag encoded in OER.
|
boolean |
getCanonicalMode()
Return true if canonical mode has been indicated by calling
setCanonicalMode(true);
|
void |
setCanonicalMode(boolean value)
Turn canonical mode on/off.
|
binDump, binDump, byteAlign, decodeBit, decodeBitsToInt, decodeBitsToLong, decodeBitsToOctetArray, decodeBitsToOctetArray, getAvailableBits, getBitOffset, getBitOffsetInByte, getMsgBitCnt, getTraceHandler, hasMoreBits, mark, moveBitCursor, readByte, reset, setInputStream, skipBitsaddCaptureBuffer, capture, decodeIntValue, decodeOIDContents, decodeOIDContentsBig, decodeRelOIDContents, decodeRelOIDContentsBig, getByteCount, getInputStream, getLazyOpenTypeDecode, hexDump, init, read, read, read, read2Bytes, read4Bytes, removeCaptureBuffer, setLazyOpenTypeDecode, skip, skipOIDContents, skipRelOIDContentsaddNamedEventHandler, getEventHandlerListCount, hasEventHandlers, invokeCharacters, invokeEndElement, invokeStartElement, setEventHandlerListgetContext, hexDump, hexDump, setKey, setTypeCodeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetInputStreampublic Asn1OerDecodeBuffer(byte[] msgdata)
msgdata - Byte array containing an encoded ASN.1 message.public Asn1OerDecodeBuffer(java.io.InputStream istream)
istream - Input stream containing an encoded ASN.1 message.public int decodeEnumValue()
throws java.io.IOException
java.io.IOExceptionpublic int decodeLength()
throws java.io.IOException
java.io.IOExceptionpublic long decodeIntSigned(int octets)
throws java.io.IOException
octets; - 0 < octets <= 8java.io.IOExceptionpublic long decodeIntUnsigned(int octets)
throws java.io.IOException
octets - The number of octets; 0 < octets <= 8java.io.IOExceptionpublic long decodeIntSigned()
throws java.io.IOException
java.io.IOExceptionpublic long decodeIntUnsigned()
throws java.io.IOException
java.io.IOExceptionpublic int decodeQuantity()
throws java.io.IOException
java.io.IOExceptionpublic void decodeTag(Asn1Tag tag) throws java.io.IOException
tag - Object to decode into.java.io.IOExceptionpublic boolean getCanonicalMode()
public void setCanonicalMode(boolean value)