|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.objsys.asn1j.runtime.Asn1MessageBuffer
com.objsys.asn1j.runtime.Asn1DecodeBuffer
com.objsys.asn1j.runtime.Asn1PerDecodeBuffer
com.objsys.asn1j.runtime.Asn1PerInputStream
public class Asn1PerInputStream
This class handles the input stream for decoding of ASN.1 messages as specified in the Packed Encoding Rules (PER) ITU-T X.691 standard.
Field Summary |
---|
Fields inherited from class com.objsys.asn1j.runtime.Asn1PerDecodeBuffer |
---|
mTraceHandler |
Fields inherited from class com.objsys.asn1j.runtime.Asn1DecodeBuffer |
---|
mByteCount |
Constructor Summary | |
---|---|
Asn1PerInputStream(java.io.InputStream istream,
boolean aligned)
This constructor creates a PER input stream object that references an encoded ASN.1 message. |
Method Summary | |
---|---|
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. |
Methods inherited from class com.objsys.asn1j.runtime.Asn1PerDecodeBuffer |
---|
binDump, binDump, byteAlign, decodeBit, decodeBit, decodeBitsToInt, decodeBitsToInt, decodeBitsToLong, decodeBitsToLong, decodeBitsToOctetArray, decodeBitsToOctetArray, decodeCharString, decodeConsWholeNumber, decodeConsWholeNumber, decodeExtLength, decodeInt, decodeInt, decodeLength, decodeLength, decodeSmallNonNegWholeNumber, getBitOffset, getMsgBitCnt, getTraceHandler, isAligned, moveBitCursor, readByte, setAligned, setBuffer, setInputStream |
Methods inherited from class com.objsys.asn1j.runtime.Asn1DecodeBuffer |
---|
addCaptureBuffer, addNamedEventHandler, capture, decodeIntValue, decodeOIDContents, decodeRelOIDContents, getByteCount, getEventHandlerListCount, getInputStream, hasEventHandlers, hexDump, init, invokeCharacters, invokeEndElement, invokeStartElement, read, read, read, removeCaptureBuffer, setEventHandlerList, setTypeCode |
Methods inherited from class com.objsys.asn1j.runtime.Asn1MessageBuffer |
---|
hexDump, hexDump, setKey |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.objsys.asn1j.runtime.Asn1PerMessageBuffer |
---|
getInputStream |
Constructor Detail |
---|
public Asn1PerInputStream(java.io.InputStream istream, boolean aligned)
istream
- Input stream containing an encoded ASN.1 message.aligned
- Boolean specifying PER aligned or unaligned encoding.Method Detail |
---|
public int available() throws java.io.IOException
available
in interface Asn1InputStream
java.io.IOException
- if an I/O error occurs.public void close() throws java.io.IOException
close
in interface Asn1InputStream
java.io.IOException
- if an I/O error occurs.public void mark(int readLimit)
mark
in interface Asn1InputStream
mark
in class Asn1DecodeBuffer
readLimit
- 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 Asn1InputStream
true
if this true type supports the mark and reset
method; false
otherwise.public void reset()
reset
in interface Asn1InputStream
reset
in class Asn1DecodeBuffer
public long skip(long nbytes) throws java.io.IOException
skip
in interface Asn1InputStream
skip
in class Asn1DecodeBuffer
nbytes
- Number of bytes to skip
java.io.IOException
- if an I/O error occurs.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |