public class SafeMemoryWriter extends DataOutputBuffer
channel| Constructor and Description |
|---|
SafeMemoryWriter(long initialCapacity) |
| Modifier and Type | Method and Description |
|---|---|
long |
capacity() |
void |
close() |
java.lang.Throwable |
close(java.lang.Throwable accumulate) |
SafeMemory |
currentBuffer() |
long |
length() |
SafeMemoryWriter |
order(java.nio.ByteOrder order) |
protected void |
reallocate(long newCapacity) |
void |
setCapacity(long newCapacity) |
buffer, doFlush, flush, getData, getLength, newDefaultChannel, toByteArrayapplyToChannel, ensureRemaining, write, write, write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUnsignedVInt, writeUTF, writeVIntretrieveTemporaryBufferpublic SafeMemory currentBuffer()
protected void reallocate(long newCapacity)
reallocate in class DataOutputBufferpublic void setCapacity(long newCapacity)
public void close()
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class DataOutputBufferpublic java.lang.Throwable close(java.lang.Throwable accumulate)
public long length()
public long capacity()
public SafeMemoryWriter order(java.nio.ByteOrder order)
order in class BufferedDataOutputStreamPlusCopyright © 2015 The Apache Software Foundation