|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.enterprise.web.connector.grizzly.ByteBufferFactory
public class ByteBufferFactory
Factory class used to create views of a ByteBuffer.
The ByteBuffer can by direct or not.
| Field Summary | |
|---|---|
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 |
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static int defaultCapacity
ByteBuffer
public static int capacity
ByteBuffer from which views
will be created.
| Method Detail |
|---|
public static ByteBuffer allocateView(int size,
boolean direct)
ByteBuffer view
size - the Size of the ByteBufferpublic static ByteBuffer allocateView(boolean direct)
ByteBuffer view using the default size.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||