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(int count) |
protected void |
expandToFit(long count) |
void |
flush() |
byte[] |
getData() |
int |
getLength() |
protected java.nio.channels.WritableByteChannel |
newDefaultChannel() |
byte[] |
toByteArray() |
applyToChannel, ensureRemaining, order, write, write, write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF
retrieveTemporaryBuffer
public DataOutputBuffer()
public DataOutputBuffer(int size)
protected DataOutputBuffer(java.nio.ByteBuffer buffer)
public void flush() throws java.io.IOException
flush
in interface java.io.Flushable
flush
in class BufferedDataOutputStreamPlus
java.io.IOException
protected void doFlush(int count) throws java.io.IOException
doFlush
in class BufferedDataOutputStreamPlus
java.io.IOException
protected void expandToFit(long count)
protected java.nio.channels.WritableByteChannel newDefaultChannel()
newDefaultChannel
in class DataOutputStreamPlus
public void close()
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class BufferedDataOutputStreamPlus
public java.nio.ByteBuffer buffer()
public byte[] getData()
public int getLength()
public byte[] toByteArray()
Copyright © 2019 The Apache Software Foundation