Java EE 5 SDK

com.sun.appserv.management.util.misc
Class LineReaderImpl

java.lang.Object
  extended by 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.


Constructor Summary
LineReaderImpl(InputStream inputStream)
           
 
Method Summary
 String readLine(String prompt)
          Reads a line, outputting an optional prompt first.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LineReaderImpl

public LineReaderImpl(InputStream inputStream)
Method Detail

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

Java EE 5 SDK

Submit a bug or feature

Copyright 2006 Sun Microsystems, Inc. All rights reserved.