com.sun.appserv.management.util.misc
Class LineReaderImpl
java.lang.Object
com.sun.appserv.management.util.misc.LineReaderImpl
- All Implemented Interfaces:
- LineReader
public class LineReaderImpl
- extends Object
- implements LineReader
Reads a line from the specified input stream, outputs
the prompt to System.out.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LineReaderImpl
public LineReaderImpl(InputStream inputStream)
readLine
public String readLine(String prompt)
throws IOException
- Description copied from interface:
LineReader
- Reads a line, outputting an optional prompt first. If the prompt is null
then no prompt is printed.
- Specified by:
readLine
in interface LineReader
- Throws:
IOException
Submit a bug or feature Copyright 2006 Sun Microsystems, Inc. All rights reserved.