|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectthinktank.j2me.TTUtils
public final class TTUtils
Useful J2ME utility methods which offer some level of similarity to familiar J2SE methods.
Nested Class Summary | |
---|---|
static interface |
TTUtils.ILogger
Allows TTUtils to redirect the log info to a class of your choice. |
Constructor Summary | |
---|---|
TTUtils()
|
Method Summary | |
---|---|
static void |
log(java.lang.String message)
If an TTUtils.ILogger has been registered via
registerLogger(thinktank.j2me.TTUtils.ILogger) then the message will be
sent there, otherwise will be printed on System.out. |
static java.lang.String |
readLine(java.io.InputStream input)
Read a line from the input, with newlines stripped. |
static void |
registerLogger(TTUtils.ILogger logger)
|
static java.lang.String[] |
stringSplit(java.lang.String string,
char separator)
J2ME implementation of String.split(). |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TTUtils()
Method Detail |
---|
public static void log(java.lang.String message)
TTUtils.ILogger
has been registered via
registerLogger(thinktank.j2me.TTUtils.ILogger)
then the message will be
sent there, otherwise will be printed on System.out.
message
- public static java.lang.String readLine(java.io.InputStream input) throws java.io.IOException
input
-
java.io.IOException
public static void registerLogger(TTUtils.ILogger logger)
logger
- null to deregisterpublic static java.lang.String[] stringSplit(java.lang.String string, char separator)
string
- separator
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |