public class SafeMemoryWriter extends DataOutputBuffer
scratchBuffer
buffer
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() |
protected void |
expandToFit(long count) |
long |
length() |
SafeMemoryWriter |
order(java.nio.ByteOrder order) |
void |
trim() |
long |
validateReallocation(long newSize) |
asNewBuffer, buffer, buffer, clear, doFlush, flush, getData, getLength, hasPosition, newDefaultChannel, position, toByteArray
write, write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF
retrieveTemporaryBuffer
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
write, writeUnsignedVInt, writeVInt
public SafeMemory currentBuffer()
protected void expandToFit(long count)
expandToFit
in class DataOutputBuffer
public void trim()
public void close()
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class DataOutputBuffer
public java.lang.Throwable close(java.lang.Throwable accumulate)
public long length()
public long capacity()
public SafeMemoryWriter order(java.nio.ByteOrder order)
order
in class BufferedDataOutputStreamPlus
public long validateReallocation(long newSize)
Copyright © 2009-2022 The Apache Software Foundation