|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmorfologik.util.BufferUtils
public final class BufferUtils
Utility functions for buffers.
| Method Summary | |
|---|---|
static ByteBuffer |
ensureCapacity(ByteBuffer buffer,
int capacity)
Ensure the byte buffer's capacity. |
static CharBuffer |
ensureCapacity(CharBuffer buffer,
int capacity)
Ensure the char buffer's capacity. |
static String |
toString(ByteBuffer sequence)
Convert a byte buffer to a string in platform default encoding. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static ByteBuffer ensureCapacity(ByteBuffer buffer,
int capacity)
buffer - The buffer to check or null if a new buffer
should be allocated.
public static CharBuffer ensureCapacity(CharBuffer buffer,
int capacity)
buffer - The buffer to check or null if a new buffer
should be allocated.public static String toString(ByteBuffer sequence)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||