intarsys runtime library

de.intarsys.tools.tlv.common
Class SimpleInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.FilterInputStream
          extended by de.intarsys.tools.tlv.common.TlvInputStream
              extended by de.intarsys.tools.tlv.common.SimpleInputStream
All Implemented Interfaces:
Closeable

public class SimpleInputStream
extends TlvInputStream

An InputStream returning SimpleElement TLV objects.


Constructor Summary
SimpleInputStream(byte[] data, int offset, int length)
           
SimpleInputStream(InputStream in)
           
 
Method Summary
 TlvElement readElement()
          The next available TlvElement or null if none available.
 
Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, read, read, read, reset, skip
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleInputStream

public SimpleInputStream(byte[] data,
                         int offset,
                         int length)

SimpleInputStream

public SimpleInputStream(InputStream in)
Method Detail

readElement

public TlvElement readElement()
                       throws IOException
Description copied from class: TlvInputStream
The next available TlvElement or null if none available.

Specified by:
readElement in class TlvInputStream
Returns:
The next available TlvElement or null if none available.
Throws:
IOException

intarsys runtime library

Copyright © 2012 intarsys consulting GmbH. All Rights Reserved.