public class ByteBufferUtils
extends java.lang.Object
Constructor and Description |
---|
ByteBufferUtils() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
toArray(java.nio.ByteBuffer buffer)
Get the byte array out of a ByteBuffer.
|
static java.lang.String |
toString(java.nio.ByteBuffer buffer)
Convert the ByteBuffer to a UTF-8 String.
|
public static byte[] toArray(java.nio.ByteBuffer buffer)
buffer
- the buffer to get the array frompublic static java.lang.String toString(java.nio.ByteBuffer buffer)
buffer
- the buffer to convertCopyright © 1995–2024 Mort Bay Consulting. All rights reserved.