| java.lang.Object com.sun.xml.ws.transport.tcp.util.ByteBufferFactory
ByteBufferFactory | final public class ByteBufferFactory (Code) | | Class was copied from GlassFish Grizzly sources to be available
also for client side and don't require GlassFish to be installed
Factory class used to create views of a ByteBuffer .
The ByteBuffer can by direct or not.
author: Jean-Francois Arcand |
Field Summary | |
public static int | capacity The default capacity of the ByteBuffer from which views
will be created. | public static int | defaultCapacity |
Method Summary | |
public static synchronized ByteBuffer | allocateView(int size, boolean direct) | public static synchronized ByteBuffer | allocateView(boolean direct) Return a direct ByteBuffer view using the default size. |
capacity | public static int capacity(Code) | | The default capacity of the ByteBuffer from which views
will be created.
|
defaultCapacity | public static int defaultCapacity(Code) | | The default capacity of the default view of a ByteBuffer
|
allocateView | public static synchronized ByteBuffer allocateView(int size, boolean direct)(Code) | | Return a direct ByteBuffer view
Parameters: size - the Size of the ByteBuffer |
allocateView | public static synchronized ByteBuffer allocateView(boolean direct)(Code) | | Return a direct ByteBuffer view using the default size.
|
|
|