public final class StringUtil extends Object
| Modifier and Type | Method and Description | 
|---|---|
| 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. | 
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 decodepublic 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 stringpublic static String lowerCaseInternal(String s)
s - the given stringpublic static String getLineSeperator()
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.