public final class ByteBuffer extends Object implements AutoCloseable
ByteBuffer
copies (i.e. the copy constructor or assignment operator) result in shallow copies.
Constructor and Description |
---|
ByteBuffer(byte[] data) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected void |
finalize() |
byte[] |
getData()
Returns the underlying byte array.
|
public void close()
close
in interface AutoCloseable
public byte[] getData()