public final class BufferUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
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.
|
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)
Copyright © 2013. All Rights Reserved.