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