All Packages Class Hierarchy This Package Previous Next Index
Class oplan.util.Util
java.lang.Object
|
+----oplan.util.Util
- public class Util
- extends Object
Class for useful static methods.
-
LINE_MAX
-
-
lineBuffer
-
-
Util()
-
-
askLine(String)
- Simple, text-based user interaction.
-
readLine(InputStream)
- Reads a line from an InputStream.
-
warn(String)
- Use this to tell the user about minor problems.
LINE_MAX
private static final int LINE_MAX
lineBuffer
private static byte lineBuffer[]
Util
public Util()
warn
public static void warn(String message)
- Use this to tell the user about minor problems. Warn prints
a message to System.out, followed by a backtrace for the current
thread.
askLine
public static String askLine(String prompt)
- Simple, text-based user interaction.
readLine
public static String readLine(InputStream is)
- Reads a line from an InputStream. Java provides println
for printing lines, but no similarly easy way to read them.
This is provided as a static method, rather than as a class
for line-reader objects, so that it can more easily be mixed
with other input operations on the same stream.
All Packages Class Hierarchy This Package Previous Next Index