rice.p2p.util.rawserialization
Class SimpleOutputBuffer
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
java.io.DataOutputStream
rice.p2p.util.rawserialization.SimpleOutputBuffer
- All Implemented Interfaces:
- Closeable, DataOutput, Flushable, OutputBuffer
public class SimpleOutputBuffer
- 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 |
SimpleOutputBuffer
public SimpleOutputBuffer(int size)
SimpleOutputBuffer
public SimpleOutputBuffer()
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
bytesRemaining
public int bytesRemaining()
- Specified by:
bytesRemaining in interface OutputBuffer
getBytes
public byte[] getBytes()
getByteBuffer
public ByteBuffer getByteBuffer()
getWritten
public int getWritten()
- The amount of bytes written so far... the size (not the capacity).
- Returns:
Copyright © 2010. All Rights Reserved.