public class SafeMemoryWriter extends DataOutputBuffer
buffer, strictFlushingchannel| 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() |
protected void |
expandToFit(long count) |
long |
length() |
SafeMemoryWriter |
order(java.nio.ByteOrder order) |
void |
trim() |
long |
validateReallocation(long newSize) |
buffer, buffer, doFlush, flush, getData, getLength, hasPosition, newDefaultChannel, position, toByteArrayapplyToChannel, write, write, write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUnsignedVInt, writeUTF, writeVIntretrieveTemporaryBufferpublic SafeMemory currentBuffer()
protected void expandToFit(long count)
expandToFit in class DataOutputBufferpublic void trim()
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 BufferedDataOutputStreamPluspublic long validateReallocation(long newSize)
Copyright © 2020 The Apache Software Foundation