org.mpisws.p2p.transport.util
Class FileOutputBuffer
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
java.io.DataOutputStream
org.mpisws.p2p.transport.util.FileOutputBuffer
- All Implemented Interfaces:
- java.io.Closeable, java.io.DataOutput, java.io.Flushable, OutputBuffer
public class FileOutputBuffer
- extends java.io.DataOutputStream
- implements OutputBuffer
Fields inherited from class java.io.DataOutputStream |
written |
Fields inherited from class java.io.FilterOutputStream |
out |
Methods inherited from class java.io.DataOutputStream |
flush, size, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF |
Methods inherited from class java.io.FilterOutputStream |
close, write |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.io.DataOutput |
write |
FileOutputBuffer
public FileOutputBuffer(java.io.File f,
boolean append)
throws java.io.FileNotFoundException
- Throws:
java.io.FileNotFoundException
FileOutputBuffer
public FileOutputBuffer(java.io.File f)
throws java.io.FileNotFoundException
- Throws:
java.io.FileNotFoundException
FileOutputBuffer
public FileOutputBuffer(java.lang.String fileName)
throws java.io.FileNotFoundException
- Throws:
java.io.FileNotFoundException
bytesRemaining
public int bytesRemaining()
- Specified by:
bytesRemaining
in interface OutputBuffer
writeByte
public void writeByte(byte v)
throws java.io.IOException
- Specified by:
writeByte
in interface OutputBuffer
- Throws:
java.io.IOException
writeChar
public void writeChar(char v)
throws java.io.IOException
- Specified by:
writeChar
in interface OutputBuffer
- Throws:
java.io.IOException
writeShort
public void writeShort(short v)
throws java.io.IOException
- Specified by:
writeShort
in interface OutputBuffer
- Throws:
java.io.IOException
Copyright © 2001-2005 - Rice Pastry.