Class AbstractInputHandler
- java.lang.Object
-
- org.codehaus.plexus.components.interactivity.AbstractInputHandler
-
- All Implemented Interfaces:
InputHandler
- Direct Known Subclasses:
DefaultInputHandler
,JLineInputHandler
public abstract class AbstractInputHandler extends java.lang.Object implements InputHandler
Base input handler, implements a defaultreadMultipleLines
.- Author:
- Brett Porter
-
-
Constructor Summary
Constructors Constructor Description AbstractInputHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.String>
readMultipleLines()
Read a set of lines.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.codehaus.plexus.components.interactivity.InputHandler
readLine, readPassword
-
-
-
-
Method Detail
-
readMultipleLines
public java.util.List<java.lang.String> readMultipleLines() throws java.io.IOException
Description copied from interface:InputHandler
Read a set of lines. Equivalent to multiple calls toInputHandler.readLine()
. Ends when an empty line is encountered.- Specified by:
readMultipleLines
in interfaceInputHandler
- Returns:
- a list of lines read
- Throws:
java.io.IOException
-
-