public class DataOutputBuffer extends BufferedDataOutputStreamPlus
channel| Modifier | Constructor and Description |
|---|---|
|
DataOutputBuffer() |
protected |
DataOutputBuffer(java.nio.ByteBuffer buffer) |
|
DataOutputBuffer(int size) |
| Modifier and Type | Method and Description |
|---|---|
java.nio.ByteBuffer |
buffer() |
void |
close() |
protected void |
doFlush() |
void |
flush() |
byte[] |
getData() |
int |
getLength() |
protected java.nio.channels.WritableByteChannel |
newDefaultChannel() |
protected void |
reallocate(long newSize) |
byte[] |
toByteArray() |
applyToChannel, ensureRemaining, order, write, write, write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUnsignedVInt, writeUTF, writeVIntretrieveTemporaryBufferpublic DataOutputBuffer()
public DataOutputBuffer(int size)
protected DataOutputBuffer(java.nio.ByteBuffer buffer)
public void flush()
throws java.io.IOException
flush in interface java.io.Flushableflush in class BufferedDataOutputStreamPlusjava.io.IOExceptionprotected void doFlush()
throws java.io.IOException
doFlush in class BufferedDataOutputStreamPlusjava.io.IOExceptionprotected void reallocate(long newSize)
protected java.nio.channels.WritableByteChannel newDefaultChannel()
newDefaultChannel in class DataOutputStreamPluspublic void close()
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class BufferedDataOutputStreamPluspublic java.nio.ByteBuffer buffer()
public byte[] getData()
public int getLength()
public byte[] toByteArray()
Copyright © 2015 The Apache Software Foundation