Overview | Package | Class | Tree | Deprecated | Index | Help | |||
PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--tools.Tool
Method Summary | |
static java.lang.String | arrayToString(java.lang.Object[] inputArray)
Helper function to turn an Object array into a String. |
static java.lang.String | getHead(java.lang.String source)
Helper function to return the head of a String. |
static java.lang.String | getQuote(java.lang.String source,
int number)
Helper function to get quotes from the source String. |
static java.lang.String | getStdInput(boolean upper)
Helper function to get a line from the standard input stream and return it as a String. |
static java.lang.String | getTail(java.lang.String source)
Helper function to return the tail of a String. |
static void | pausedOutput(java.io.PrintWriter out,
java.lang.String[] line,
int pause,
boolean lineNumber)
Helper function to output a String array to a PrintWriter. |
static java.lang.String[] | stringToArray(java.lang.String inputString)
Helper function to turns a string into an array of tokens (String[]). |
Methods inherited from class java.lang.Object | |
clone, equals, finalize, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait |
Method Detail |
public static java.lang.String getStdInput(boolean upper) throws java.io.IOException
upper
- When true, returns the input line in upper case.public static java.lang.String[] stringToArray(java.lang.String inputString)
inputString
- The String to parse into tokenspublic static java.lang.String arrayToString(java.lang.Object[] inputArray)
inputArray
- The array of Objects to Concatenate.public static void pausedOutput(java.io.PrintWriter out, java.lang.String[] line, int pause, boolean lineNumber) throws java.io.IOException
out
- PrintWriter for output.
line
- A String array of lines to output.
pause
- The number of lines to print before pausing, or no pause
if pause = 0;
lineNumber
- line numbers are added to the output if lineNumber = true.public static java.lang.String getHead(java.lang.String source)
source
- The source String.public static java.lang.String getTail(java.lang.String source)
source
- The source String.public static java.lang.String getQuote(java.lang.String source, int number)
source
- The string to search for quotes.
number
- The nth quote to fetch.Overview | Package | Class | Tree | Deprecated | Index | Help | |||
PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |