java.lang
Class StringUtils

java.lang.Object
  extended byjava.lang.StringUtils

public final class StringUtils
extends Object

Utilities for non-standard String maniplulation. Use of these utilities will make your programs non-standard.


Method Summary
static char[] getCharacters(String s)
          Return the character array corresponding to the String without copying it.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait
 

Method Detail

getCharacters

public static char[] getCharacters(String s)
Return the character array corresponding to the String without copying it. This method, unlike the toCharArray method of String, uses no memory. This method should be used with care as it is non-standard and allows the contents of a String to be overwritten. Use in user programs will make the programs non-standard and non-portable.

Parameters:
s - the String whose characters are required
Returns:
the character array (uncopied)