public class Asn1OerDecodeBuffer extends Asn1DecodeBitBuffer
mTraceHandler
mByteCount
context, 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, skipBits
addCaptureBuffer, capture, decodeIntValue, decodeOIDContents, decodeOIDContentsBig, decodeRelOIDContents, decodeRelOIDContentsBig, getByteCount, getInputStream, getLazyOpenTypeDecode, hexDump, init, read, read, read, read2Bytes, read4Bytes, removeCaptureBuffer, setLazyOpenTypeDecode, skip, skipOIDContents, skipRelOIDContents
addNamedEventHandler, getEventHandlerListCount, hasEventHandlers, invokeCharacters, invokeEndElement, invokeStartElement, setEventHandlerList
getContext, hexDump, hexDump, setKey, setTypeCode
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getInputStream
public 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.IOException
public int decodeLength() throws java.io.IOException
java.io.IOException
public long decodeIntSigned(int octets) throws java.io.IOException
octets;
- 0 < octets <= 8java.io.IOException
public long decodeIntUnsigned(int octets) throws java.io.IOException
octets
- The number of octets; 0 < octets <= 8java.io.IOException
public long decodeIntSigned() throws java.io.IOException
java.io.IOException
public long decodeIntUnsigned() throws java.io.IOException
java.io.IOException
public int decodeQuantity() throws java.io.IOException
java.io.IOException
public void decodeTag(Asn1Tag tag) throws java.io.IOException
tag
- Object to decode into.java.io.IOException
public boolean getCanonicalMode()
public void setCanonicalMode(boolean value)