public final class ByteBufferFactory extends Object
ByteBuffer.
The ByteBuffer can by direct or not.| Modifier and Type | Field and Description |
|---|---|
static int |
capacity
The default capacity of the
ByteBuffer from which views
will be created. |
static int |
defaultCapacity
The default capacity of the default view of a
ByteBuffer |
| Modifier and Type | Method and Description |
|---|---|
static ByteBuffer |
allocateView(boolean direct)
Return a direct
ByteBuffer view using the default size. |
static ByteBuffer |
allocateView(int size,
boolean direct)
Return a direct
ByteBuffer view |
public static int defaultCapacity
ByteBufferpublic static int capacity
ByteBuffer from which views
will be created.public static ByteBuffer allocateView(int size, boolean direct)
ByteBuffer viewsize - the Size of the ByteBufferpublic static ByteBuffer allocateView(boolean direct)
ByteBuffer view using the default size.Copyright © 2005–2018 Oracle Corporation. All rights reserved.