Rice Pastry API

org.mpisws.p2p.transport.util
Class FileInputBuffer

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.FilterInputStream
          extended by java.io.DataInputStream
              extended by org.mpisws.p2p.transport.util.FileInputBuffer
All Implemented Interfaces:
java.io.Closeable, java.io.DataInput, InputBuffer

public class FileInputBuffer
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
FileInputBuffer(java.io.File f, Logger logger)
           
FileInputBuffer(java.lang.String fileName, Logger logger)
           
 
Method Summary
 int bytesRemaining()
          How much data is left in the InputBuffer.
 java.lang.String toString()
           
 
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, 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

FileInputBuffer

public FileInputBuffer(java.io.File f,
                       Logger logger)
                throws java.io.FileNotFoundException
Throws:
java.io.FileNotFoundException

FileInputBuffer

public FileInputBuffer(java.lang.String fileName,
                       Logger logger)
                throws java.io.FileNotFoundException
Throws:
java.io.FileNotFoundException
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

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

Rice Pastry API

Copyright © 2001-2005 - Rice Pastry.


Imprint-Dataprotection