public interface IBuffer
| Modifier and Type | Method and Description |
|---|---|
java.nio.ByteBuffer |
bytes() |
IBuffer |
close(int length,
boolean spill) |
void |
free()
Frees the buffer, allowing its contents to be overwritten.
|
boolean |
isClosed() |
boolean |
isDurable() |
long |
size() |
DurableInput |
toInput() |
void |
transferTo(java.nio.channels.WritableByteChannel target)
Transfers all bytes from the buffer to
target. |
long size()
DurableInput toInput()
java.lang.Exception - if the buffer is openjava.nio.ByteBuffer bytes()
java.lang.Exception - if the buffer is closedIBuffer close(int length, boolean spill)
length bytesjava.lang.Exception - if the buffer is closedvoid transferTo(java.nio.channels.WritableByteChannel target)
target.java.lang.Exception - if the buffer is open.void free()
boolean isDurable()
boolean isClosed()