|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface WrapperAware<E extends Buffer>
MemoryManagers, which implement this interface, are able to convert
frequently used Java buffer types to Grizzly Buffer.
MemoryUtils,
MemoryManager| Method Summary | |
|---|---|
E |
wrap(byte[] data)
Returns Buffer, which wraps the byte array. |
E |
wrap(byte[] data,
int offset,
int length)
Returns Buffer, which wraps the part of byte array with
specific offset and length. |
E |
wrap(ByteBuffer byteBuffer)
Returns Buffer, which wraps the ByteBuffer. |
E |
wrap(String s)
Returns Buffer, which wraps the String. |
E |
wrap(String s,
Charset charset)
Returns Buffer, which wraps the String with the specific
Charset. |
| Method Detail |
|---|
E wrap(byte[] data)
Buffer, which wraps the byte array.
data - byte array to wrap
Buffer wrapper on top of passed byte array.
E wrap(byte[] data,
int offset,
int length)
Buffer, which wraps the part of byte array with
specific offset and length.
data - byte array to wrapoffset - byte buffer offsetlength - byte buffer length
Buffer wrapper on top of passed byte array.E wrap(String s)
Buffer, which wraps the String.
s - String
Buffer wrapper on top of passed String.
E wrap(String s,
Charset charset)
Buffer, which wraps the String with the specific
Charset.
s - Stringcharset - Charset, which will be used, when converting
String to byte array.
Buffer wrapper on top of passed String.E wrap(ByteBuffer byteBuffer)
Buffer, which wraps the ByteBuffer.
byteBuffer - ByteBuffer to wrap
Buffer wrapper on top of passed ByteBuffer.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||