public class Asn1PerInputStream extends Asn1PerDecodeBuffer implements Asn1InputStream
mTraceHandlermByteCountcontext, mTypeCode| Constructor and Description |
|---|
Asn1PerInputStream(java.io.InputStream istream,
boolean aligned)
This constructor creates a PER input stream object that
references an encoded ASN.1 message.
|
| Modifier and Type | Method and Description |
|---|---|
int |
available()
Returns the number of bytes that can be read (or skipped over) from
this input stream without blocking by the next caller of a method for
this input stream.
|
void |
close()
Closes this input stream and releases any system resources associated
with the stream.
|
void |
mark(int readLimit)
This method is used to mark the current position in the input
stream for retry processing.
|
boolean |
markSupported()
Tests if this input stream supports the
mark and
reset methods. |
void |
reset()
This method is used to reset the current position in the input
stream back to the location of the last 'mark' call.
|
long |
skip(long nbytes)
This method will skip over the requested number of bytes in
the input stream.
|
byteAlign, decodeBit, decodeBit, decodeBitsToInt, decodeBitsToInt, decodeBitsToLong, decodeBitsToLong, decodeBitsToOctetArray, decodeBitsToOctetArray, decodeBitsToOctetArray, decodeCharString, decodeConsWholeNumber, decodeConsWholeNumber, decodeConsWholeNumber, decodeExtLength, decodeInt, decodeInt, decodeLength, decodeLength, decodeSmallLength, decodeSmallNonNegWholeNumber, decodeUnconsLength, isAligned, setAligned, setBuffer, setSizeConstraint, setSizeConstraintExtbinDump, binDump, decodeBitsToOctetArray, getAvailableBits, getBitOffset, getBitOffsetInByte, getMsgBitCnt, getTraceHandler, hasMoreBits, moveBitCursor, readByte, setInputStream, skipBitsaddCaptureBuffer, capture, decodeIntValue, decodeOIDContents, decodeOIDContentsBig, decodeRelOIDContents, decodeRelOIDContentsBig, getByteCount, getInputStream, getLazyOpenTypeDecode, hexDump, init, read, read, read, read2Bytes, read4Bytes, removeCaptureBuffer, setLazyOpenTypeDecode, skipOIDContents, skipRelOIDContentsaddNamedEventHandler, getEventHandlerListCount, hasEventHandlers, invokeCharacters, invokeEndElement, invokeStartElement, setEventHandlerListgetContext, hexDump, hexDump, setKey, setTypeCodeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetInputStream, getMsgBitCnt, getTraceHandlerpublic Asn1PerInputStream(java.io.InputStream istream,
boolean aligned)
istream - Input stream containing an encoded ASN.1 message.aligned - Boolean specifying PER aligned or unaligned encoding.public int available()
throws java.io.IOException
available in interface Asn1InputStreamjava.io.IOException - if an I/O error occurs.public void close()
throws java.io.IOException
close in interface Asn1InputStreamjava.io.IOException - if an I/O error occurs.public void mark(int readLimit)
mark in interface Asn1InputStreammark in class Asn1DecodeBitBufferreadLimit - Max number of bytes that can be read before mark
becomes invalid.public boolean markSupported()
mark and
reset methods. The markSupported method of
InputStream returns false.markSupported in interface Asn1InputStreamtrue if this true type supports the mark and reset
method; false otherwise.public void reset()
reset in interface Asn1InputStreamreset in class Asn1DecodeBitBufferpublic long skip(long nbytes)
throws java.io.IOException
skip in interface Asn1InputStreamskip in class Asn1DecodeBuffernbytes - Number of bytes to skipjava.io.IOException - if an I/O error occurs.