|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object spellcast.util.TextUtil
public abstract class TextUtil
Miscellaneous text utilities for Spellcast strings.
Method Summary | |
---|---|
static java.lang.String |
getGameName(java.lang.String line)
From a line from GameNames.txt return the game name or null if the line is malformed. |
static java.lang.String |
getGender(java.lang.String line)
From a line from Profiles.txt return the Gender string. |
static java.lang.String |
getIPAddress(java.lang.String serverAddressString)
From a string of the form |
static int |
getNumberOfUses(java.lang.String line)
From a line from GameNames.txt return the numberOfUses or -1 if the line is malformed. |
static int |
getPort(java.lang.String serverAddressString)
From a string of the form |
static java.lang.String |
getWizardName(java.lang.String line)
From a line from Profiles.txt return the Wizard Name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.lang.String getGender(java.lang.String line)
line
- a lone of the format public static java.lang.String getWizardName(java.lang.String line)
line
- a lone of the format public static int getNumberOfUses(java.lang.String line)
line
- a line of the format public static java.lang.String getGameName(java.lang.String line)
line
- a line of the format public static java.lang.String getIPAddress(java.lang.String serverAddressString)
serverAddress
- a string of the form public static int getPort(java.lang.String serverAddressString)
serverAddressString
- a string of the form
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |