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:
- Closeable, DataOutput, Flushable, OutputBuffer
public class FileOutputBuffer
- extends DataOutputStream
- implements OutputBuffer
| 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.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileOutputBuffer
public FileOutputBuffer(File f,
boolean append)
throws FileNotFoundException
- Throws:
FileNotFoundException
FileOutputBuffer
public FileOutputBuffer(File f)
throws FileNotFoundException
- Throws:
FileNotFoundException
FileOutputBuffer
public FileOutputBuffer(String fileName)
throws FileNotFoundException
- Throws:
FileNotFoundException
bytesRemaining
public int bytesRemaining()
- 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.