|
|||||||||
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 java.nio.ByteBuffer |
ensureCapacity(java.nio.ByteBuffer buffer,
int capacity)
Ensure the byte buffer's capacity. |
static java.nio.CharBuffer |
ensureCapacity(java.nio.CharBuffer buffer,
int capacity)
Ensure the char buffer's capacity. |
static java.lang.String |
toString(java.nio.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 java.nio.ByteBuffer ensureCapacity(java.nio.ByteBuffer buffer, int capacity)
buffer
- The buffer to check or null
if a new buffer
should be allocated.public static java.nio.CharBuffer ensureCapacity(java.nio.CharBuffer buffer, int capacity)
buffer
- The buffer to check or null
if a new buffer
should be allocated.public static java.lang.String toString(java.nio.ByteBuffer sequence)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |