org.openbandy.io.rms
Class DirectByteArrayInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.ByteArrayInputStream
          extended by org.openbandy.io.rms.DirectByteArrayInputStream
All Implemented Interfaces:
java.io.Closeable

public class DirectByteArrayInputStream
extends java.io.ByteArrayInputStream

A version of ByteArrayInputStream that replaces the underlying byte array.

(c) Copyright P. Bolliger 2007, ALL RIGHTS RESERVED.

Version:
1.0
Author:
Philipp Bolliger (philipp@bolliger.name)

Constructor Summary
DirectByteArrayInputStream(byte[] buf)
           
DirectByteArrayInputStream(byte[] buf, int offset, int length)
           
 
Method Summary
 void setByteArray(byte[] buf)
          TODO comment!
 void setByteArray(byte[] buf, int offset, int length)
          TODO comment!
 
Methods inherited from class java.io.ByteArrayInputStream
available, close, mark, markSupported, read, read, reset, skip
 
Methods inherited from class java.io.InputStream
read
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirectByteArrayInputStream

public DirectByteArrayInputStream(byte[] buf)

DirectByteArrayInputStream

public DirectByteArrayInputStream(byte[] buf,
                                  int offset,
                                  int length)
Method Detail

setByteArray

public void setByteArray(byte[] buf)
TODO comment!

Parameters:
buf -

setByteArray

public void setByteArray(byte[] buf,
                         int offset,
                         int length)
TODO comment!

Parameters:
buf -
offset -
length -