|
Mp3dings 20100427 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.mp3dings.utils.CaseChanger
public class CaseChanger
Static class that provides a method to change the case of a string.
| Field Summary | |
|---|---|
static int |
LOWER
Lowercase |
static int |
NO_CHANGE
|
static int |
UPPER
Uppercase |
static int |
UPPER_EACH_FIRST
First letter of each word uppercase |
static int |
UPPER_FIRST
First letter of string uppercase |
| Method Summary | |
|---|---|
static String[] |
changeCase(String[] input,
int mode)
Changes the case of the specified strings. |
static String[] |
changeCase(String[] input,
String[] output,
int mode)
Changes the case of the specified strings. |
static String |
changeCase(String input,
int mode)
Changes the case of the specified string |
static String |
getModeName(int mode)
Gets the name of a case changing mode |
static String[] |
getModeNames()
Gets the names of all available case changing modes. |
static int |
getNumModes()
Gets the number of available case changing modes |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int NO_CHANGE
public static final int LOWER
public static final int UPPER
public static final int UPPER_FIRST
public static final int UPPER_EACH_FIRST
| Method Detail |
|---|
public static String getModeName(int mode)
mode - by default one of LOWER, UPPER, UPPER_FIRST or
UPPER_EACH_FIRST
public static String[] getModeNames()
public static int getNumModes()
public static String[] changeCase(String[] input,
int mode)
changeCase(input, null, mode)
.
input - strings to process, my be nullmode - one of NO_CHANGE, LOWER, UPPER, UPPER_FIRST or UPPER_EACH_FIRST
changeCase(String[], String[], int)
public static String[] changeCase(String[] input,
String[] output,
int mode)
input - strings to process, may be nulloutput - a string array to hold the case-changed strings that may
be the same as input. If it is null or of incorrect
length a new string array is allocated.mode - one of NO_CHANGE, LOWER, UPPER, UPPER_FIRST or UPPER_EACH_FIRST
changeCase(String input, int mode)
public static String changeCase(String input,
int mode)
input - string to process, may be nullmode - one of NO_CHANGE, LOWER, UPPER, UPPER_FIRST or UPPER_EACH_FIRST
|
Mp3dings 20100427 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||