public final class Buffer extends Object implements AutoCloseable
| Modifier | Constructor and Description |
|---|---|
protected |
Buffer(Session session,
ByteBuffer buffer) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected void |
finalize() |
ByteBuffer |
toByteBuffer() |
String |
toString() |
static Buffer |
wrap(Session session,
ByteBuffer buffer) |
static Buffer |
wrap(Session session,
Reference<ByteBuffer> ref) |
protected Buffer(Session session, ByteBuffer buffer)
public static Buffer wrap(Session session, ByteBuffer buffer)
public static Buffer wrap(Session session, Reference<ByteBuffer> ref)
protected void finalize()
throws Throwable
public void close()
close in interface AutoCloseablepublic ByteBuffer toByteBuffer()
Copyright © 2021. All rights reserved.