com.objsys.asn1j.runtime
Class Asn1MderDecodeBuffer

java.lang.Object
  extended by com.objsys.asn1j.runtime.Asn1MessageBufferBase
      extended by com.objsys.asn1j.runtime.Asn1MessageBuffer
          extended by com.objsys.asn1j.runtime.Asn1DecodeBuffer
              extended by com.objsys.asn1j.runtime.Asn1MderDecodeBuffer
All Implemented Interfaces:
Asn1InputStream

public class Asn1MderDecodeBuffer
extends Asn1DecodeBuffer
implements Asn1InputStream

Asn1MderDecodeBuffer provides the source for an MDER decode.


Field Summary
 
Fields inherited from class com.objsys.asn1j.runtime.Asn1DecodeBuffer
mByteCount
 
Fields inherited from class com.objsys.asn1j.runtime.Asn1MessageBufferBase
context, mTypeCode
 
Constructor Summary
Asn1MderDecodeBuffer(byte[] msgdata)
          Convenience method to create a decoder on an array of data.
Asn1MderDecodeBuffer(java.io.InputStream istream)
          Create a decoder on the given input stream.
 
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.
 boolean markSupported()
          Tests if this input stream supports the mark and reset methods.
 int readByte()
          This abstract method returns the next available 8-bit value from the input stream.
 
Methods inherited from class com.objsys.asn1j.runtime.Asn1DecodeBuffer
addCaptureBuffer, capture, decodeIntValue, decodeOIDContents, decodeRelOIDContents, getByteCount, getInputStream, getLazyOpenTypeDecode, hexDump, init, mark, read, read, read, read2Bytes, read4Bytes, removeCaptureBuffer, reset, setInputStream, setLazyOpenTypeDecode, skip
 
Methods inherited from class com.objsys.asn1j.runtime.Asn1MessageBuffer
addNamedEventHandler, getEventHandlerListCount, hasEventHandlers, invokeCharacters, invokeEndElement, invokeStartElement, setEventHandlerList
 
Methods inherited from class com.objsys.asn1j.runtime.Asn1MessageBufferBase
getContext, hexDump, hexDump, setKey, setTypeCode
 
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.Asn1InputStream
mark, reset, skip
 

Constructor Detail

Asn1MderDecodeBuffer

public Asn1MderDecodeBuffer(byte[] msgdata)
Convenience method to create a decoder on an array of data.

Parameters:
msgdata -

Asn1MderDecodeBuffer

public Asn1MderDecodeBuffer(java.io.InputStream istream)
Create a decoder on the given input stream.

Parameters:
istream -
Method Detail

readByte

public int readByte()
             throws Asn1Exception,
                    java.io.IOException
Description copied from class: Asn1DecodeBuffer
This abstract method returns the next available 8-bit value from the input stream. It is implemented differently for BER/DER and PER to take into account odd alignments in PER.

Specified by:
readByte in class Asn1DecodeBuffer
Returns:
Next 8-bit byte value from input stream
Throws:
Asn1Exception
java.io.IOException

available

public int available()
              throws java.io.IOException
Description copied from interface: Asn1InputStream
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. The next caller might be the same thread or or another thread.

Specified by:
available in interface Asn1InputStream
Returns:
the number of bytes that can be read from this input stream without blocking.
Throws:
java.io.IOException - if an I/O error occurs.

close

public void close()
           throws java.io.IOException
Description copied from interface: Asn1InputStream
Closes this input stream and releases any system resources associated with the stream.

Specified by:
close in interface Asn1InputStream
Throws:
java.io.IOException - if an I/O error occurs.

markSupported

public boolean markSupported()
Description copied from interface: Asn1InputStream
Tests if this input stream supports the mark and reset methods. The markSupported method of InputStream returns false.

Specified by:
markSupported in interface Asn1InputStream
Returns:
true if this true type supports the mark and reset method; false otherwise.