bamboo.util
Class StreamInputBuffer

java.lang.Object
  extended by ostore.util.InputBufferImpl
      extended by bamboo.util.StreamInputBuffer
All Implemented Interfaces:
Cloneable, ostore.util.InputBuffer

public class StreamInputBuffer
extends ostore.util.InputBufferImpl

Wraps a java.io.InputStream in the ostore.util.InputBuffer interface.

Version:
$Id: StreamInputBuffer.java,v 1.1 2004/05/22 00:15:44 srhea Exp $
Author:
Sean C. Rhea

Field Summary
 LinkedList errors
           
 InputStream is
           
 
Constructor Summary
StreamInputBuffer(InputStream i)
           
 
Method Summary
protected  void error(IOException e)
           
 byte nextByte()
           
 void nextBytes(byte[] output, int offset, int length)
           
 void nextBytes(ostore.util.OutputBuffer buffer)
           
 void skipBytes(int length)
           
 ostore.util.InputBuffer subBuffer(int length)
           
 
Methods inherited from class ostore.util.InputBufferImpl
clone, nextBigInteger, nextBigInteger, nextBoolean, nextBoolean, nextDouble, nextDouble, nextInt, nextInt, nextLong, nextLong, nextObject, nextObject, nextShort, nextShort, nextString, nextString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

is

public InputStream is

errors

public LinkedList errors
Constructor Detail

StreamInputBuffer

public StreamInputBuffer(InputStream i)
Method Detail

nextByte

public byte nextByte()

nextBytes

public void nextBytes(byte[] output,
                      int offset,
                      int length)

nextBytes

public void nextBytes(ostore.util.OutputBuffer buffer)

skipBytes

public void skipBytes(int length)

subBuffer

public ostore.util.InputBuffer subBuffer(int length)

error

protected void error(IOException e)