Package org.glassfish.admin.amx.util
Class LineReaderImpl
- java.lang.Object
-
- org.glassfish.admin.amx.util.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
Constructors Constructor Description LineReaderImpl(InputStream inputStream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
readLine(String prompt)
Reads a line, outputting an optional prompt first.
-
-
-
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 interfaceLineReader
- Throws:
IOException
-
-