net.sf.beanlib.utils
Class StringUtils
java.lang.Object
net.sf.beanlib.utils.StringUtils
public class StringUtils
- extends Object
String Utilities.
- Author:
- Joe D. Velopar
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EMPTY_2D_ARRAY
public static final String[][] EMPTY_2D_ARRAY
inst
public static final StringUtils inst
StringUtils
private StringUtils()
capitalize
public static String capitalize(String name)
getBytesFromAsciiString
public static byte[] getBytesFromAsciiString(String asciiString)
- Returns the bytes from the given String of ascii characters fast,
using the least amount of memory in the process.
- Throws:
IllegalArgumentException
- if the input string is not ASCII.
getBytesFromAsciiString
public static byte[] getBytesFromAsciiString(String asciiString,
boolean leastMemory)
- Returns the bytes from the given String of ascii characters fast.
- Throws:
IllegalArgumentException
- if the input string is not ASCII.