|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.cindy.buffer.BufferFactory
public class BufferFactory
Buffer factory.
| Constructor Summary | |
|---|---|
BufferFactory()
|
|
| Method Summary | |
|---|---|
static Buffer |
allocate(int capacity)
Allocate a new buffer. |
static Buffer |
allocate(int capacity,
boolean direct)
Allocate a new buffer. |
static Buffer |
wrap(Buffer[] buffers)
Wrap a buffer array into a single buffer. |
static Buffer |
wrap(byte[] array)
Wrap a byte array into a buffer. |
static Buffer |
wrap(byte[] array,
int offset,
int length)
Wrap a byte array into a buffer. |
static Buffer |
wrap(java.nio.ByteBuffer buffer)
Wrap a byte buffer into a buffer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BufferFactory()
| Method Detail |
|---|
public static Buffer wrap(byte[] array)
array - byte array
public static Buffer wrap(byte[] array,
int offset,
int length)
array - byte arrayoffset - the offset of the subarray to be usedlength - the length of the subarray to be used
public static Buffer wrap(java.nio.ByteBuffer buffer)
buffer - byte buffer
public static Buffer wrap(Buffer[] buffers)
buffers - buffer array
public static Buffer allocate(int capacity)
capacity - allocate capacity
public static Buffer allocate(int capacity,
boolean direct)
capacity - allocate capacitydirect - allocate direct buffer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||