|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.hazelcast.util.StringUtil
public final class StringUtil
Utility class for Strings.
| Method Summary | |
|---|---|
static String |
bytesToString(byte[] bytes)
Creates a UTF8_CHARSET string from a byte array. |
static String |
bytesToString(byte[] bytes,
int offset,
int length)
Creates a UTF8_CHARSET string from a byte array. |
static String |
getLineSeperator()
Returns system property "line.seperator" |
static boolean |
isNullOrEmpty(String s)
Checks if a string is empty or not. |
static String |
lowerCaseInternal(String s)
HC specific settings, operands etc. |
static byte[] |
stringToBytes(String s)
Creates a byte array from a string. |
static String |
upperCaseInternal(String s)
HC specific settings, operands etc. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static String bytesToString(byte[] bytes,
int offset,
int length)
bytes - the byte array.offset - the index of the first byte to decodelength - the number of bytes to decode
public static String bytesToString(byte[] bytes)
bytes - the byte array.
public static byte[] stringToBytes(String s)
s - the string.
public static boolean isNullOrEmpty(String s)
s - the string to check.
public static String upperCaseInternal(String s)
s - the given string
public static String lowerCaseInternal(String s)
s - the given string
public static String getLineSeperator()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||