java.lang
Class StringUtils
java.lang.Object
|
+--java.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. |
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)