rice.p2p.util
Class RandomAccessFileIOBuffer
java.lang.Object
java.io.RandomAccessFile
rice.p2p.util.RandomAccessFileIOBuffer
- All Implemented Interfaces:
- Closeable, DataInput, DataOutput, InputBuffer, OutputBuffer
public class RandomAccessFileIOBuffer
- extends RandomAccessFile
- implements InputBuffer, OutputBuffer
| Methods inherited from class java.io.RandomAccessFile |
close, getChannel, getFD, getFilePointer, length, read, read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, seek, setLength, skipBytes, write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF |
| 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 |
RandomAccessFileIOBuffer
public RandomAccessFileIOBuffer(File file,
String mode)
throws FileNotFoundException
- Throws:
FileNotFoundException
RandomAccessFileIOBuffer
public RandomAccessFileIOBuffer(String name,
String mode)
throws FileNotFoundException
- Throws:
FileNotFoundException
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- Specified by:
bytesRemaining in interface OutputBuffer
writeByte
public void writeByte(byte v)
throws IOException
- Specified by:
writeByte in interface OutputBuffer
- Throws:
IOException
writeChar
public void writeChar(char v)
throws IOException
- Specified by:
writeChar in interface OutputBuffer
- Throws:
IOException
writeShort
public void writeShort(short v)
throws IOException
- Specified by:
writeShort in interface OutputBuffer
- Throws:
IOException
Copyright © 2010. All Rights Reserved.