public final class TextUtils extends Object
| Constructor and Description |
|---|
TextUtils() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
getBytes(String data,
String charset)
Converts the specified string to a byte array.
|
static String |
getString(byte[] data,
int offset,
int length,
String charset)
Converts the byte array of characters to a string.
|
static boolean |
isBlank(CharSequence s) |
static boolean |
isEmpty(CharSequence s) |
static String |
join(CharSequence glue,
CharSequence[] parts) |
public static String join(CharSequence glue, CharSequence[] parts)
public static boolean isEmpty(CharSequence s)
public static boolean isBlank(CharSequence s)
public static String getString(byte[] data, int offset, int length, String charset)
data - the byte array to be encodedoffset - the index of the first byte to encodelength - the number of bytes to encodecharset - the desired character encodingpublic static byte[] getBytes(String data, String charset)
data - the string to be encodedcharset - the desired character encodingCopyright © 2025. All rights reserved.