Rice Pastry API

rice.p2p.util.rawserialization
Class SimpleInputBuffer

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.FilterInputStream
          extended by java.io.DataInputStream
              extended by rice.p2p.util.rawserialization.SimpleInputBuffer
All Implemented Interfaces:
java.io.Closeable, java.io.DataInput, InputBuffer

public class SimpleInputBuffer
extends java.io.DataInputStream
implements InputBuffer


Field Summary
 
Fields inherited from class java.io.FilterInputStream
in
 
Fields inherited from interface rice.p2p.commonapi.rawserialization.InputBuffer
UNKNOWN
 
Constructor Summary
SimpleInputBuffer(byte[] bytes)
           
SimpleInputBuffer(byte[] bytes, int offset)
           
SimpleInputBuffer(byte[] bytes, int offset, int length)
           
SimpleInputBuffer(java.nio.ByteBuffer bb)
           
 
Method Summary
 int bytesRemaining()
          How much data is left in the InputBuffer.
 
Methods inherited from class java.io.DataInputStream
read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, readUTF, skipBytes
 
Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface rice.p2p.commonapi.rawserialization.InputBuffer
read, read, readBoolean, readByte, readChar, readDouble, readFloat, readInt, readLong, readShort, readUTF
 

Constructor Detail

SimpleInputBuffer

public SimpleInputBuffer(java.nio.ByteBuffer bb)

SimpleInputBuffer

public SimpleInputBuffer(byte[] bytes)

SimpleInputBuffer

public SimpleInputBuffer(byte[] bytes,
                         int offset)

SimpleInputBuffer

public SimpleInputBuffer(byte[] bytes,
                         int offset,
                         int length)
Method Detail

bytesRemaining

public int bytesRemaining()
Description copied from interface: InputBuffer
How much data is left in the InputBuffer. May be UNKNOWN

Specified by:
bytesRemaining in interface InputBuffer

Rice Pastry API

Copyright © 2001-2005 - Rice Pastry.


Imprint-Dataprotection