net.sf.beanlib.utils
Class StringUtils

java.lang.Object
  extended by net.sf.beanlib.utils.StringUtils

public class StringUtils
extends Object

String Utilities.

Author:
Joe D. Velopar

Field Summary
static String[][] EMPTY_2D_ARRAY
           
 
Constructor Summary
StringUtils()
           
 
Method Summary
static String capitalize(String name)
           
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.
static byte[] getBytesFromAsciiString(String asciiString, boolean leastMemory)
          Returns the bytes from the given String of ascii characters fast.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EMPTY_2D_ARRAY

public static final String[][] EMPTY_2D_ARRAY
Constructor Detail

StringUtils

public StringUtils()
Method Detail

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.