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.


Variable Index

 o LINE_MAX
 o lineBuffer

Constructor Index

 o Util()

Method Index

 o askLine(String)
Simple, text-based user interaction.
 o readLine(InputStream)
Reads a line from an InputStream.
 o warn(String)
Use this to tell the user about minor problems.

Variables

 o LINE_MAX
 private static final int LINE_MAX
 o lineBuffer
 private static byte lineBuffer[]

Constructors

 o Util
 public Util()

Methods

 o 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.

 o askLine
 public static String askLine(String prompt)
Simple, text-based user interaction.

 o 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