public class StringUtils extends Object
| Constructor and Description |
|---|
StringUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
bufferToString(ByteBuffer[] bufs,
Charset cs)
Like bufferToString, but read multiple buffers.
|
static String |
bufferToString(ByteBuffer buf,
Charset cs)
Using a CharsetDecoder, translate the ByteBuffer into a stream, updating the buffer's position as we go.
|
static ByteBuffer |
stringToBuffer(String str,
Charset cs)
Using a CharsetEncoder, translate a string to a ByteBuffer, allocating a new buffer
as necessary.
|
static String |
unquote(String s)
Remove leading and trailing strings from a quoted string that has both leading and trailing quotes on it.
|
public static String bufferToString(ByteBuffer buf, Charset cs)
public static String bufferToString(ByteBuffer[] bufs, Charset cs)
public static ByteBuffer stringToBuffer(String str, Charset cs)
Copyright © 2016 Apigee Corporation. All Rights Reserved.