iaik.utils
Class InitBufferedInputStream

java.lang.Object
  |
  +--java.io.InputStream
        |
        +--java.io.FilterInputStream
              |
              +--java.io.BufferedInputStream
                    |
                    +--iaik.utils.InitBufferedInputStream

public class InitBufferedInputStream
extends java.io.BufferedInputStream

An ordinary BufferedInputStream where the internal buffer can be initialized with an array.


Fields inherited from class java.io.BufferedInputStream
buf, count, marklimit, markpos, pos
 
Fields inherited from class java.io.FilterInputStream
in
 
Constructor Summary
InitBufferedInputStream(java.io.InputStream is, byte[] initArray)
          Creates a new buffered input stream to read data from the specified input stream.
InitBufferedInputStream(java.io.InputStream is, byte[] initArray, int size)
          Creates a new buffered input stream to read data from the specified input stream with the specified buffer size.
 
Methods inherited from class java.io.BufferedInputStream
available, close, mark, markSupported, read, read, reset, skip
 
Methods inherited from class java.io.FilterInputStream
read
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InitBufferedInputStream

public InitBufferedInputStream(java.io.InputStream is,
                               byte[] initArray)
Creates a new buffered input stream to read data from the specified input stream.
Parameters:
is - the underlying input stream
initArray - the initializiation data for the buffer

InitBufferedInputStream

public InitBufferedInputStream(java.io.InputStream is,
                               byte[] initArray,
                               int size)
Creates a new buffered input stream to read data from the specified input stream with the specified buffer size.
Parameters:
is - the underlying input stream
initArray - the initializiation data for the buffer
size - the buffer size