org.codehaus.plexus.components.interactivity
Class AbstractInputHandler
java.lang.Object
org.codehaus.plexus.logging.AbstractLogEnabled
org.codehaus.plexus.components.interactivity.AbstractInputHandler
- All Implemented Interfaces:
- InputHandler, LogEnabled
- Direct Known Subclasses:
- DefaultInputHandler
public abstract class AbstractInputHandler
- extends AbstractLogEnabled
- implements InputHandler
Base input handler, implements a default readMultipleLines
.
- Version:
- $Id: AbstractInputHandler.java 2649 2005-10-10 16:51:51Z brett $
- Author:
- Brett Porter
Fields inherited from interface org.codehaus.plexus.components.interactivity.InputHandler |
ROLE |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractInputHandler
public AbstractInputHandler()
readMultipleLines
public List readMultipleLines()
throws IOException
- Description copied from interface:
InputHandler
- Read a set of lines. Equivalent to multiple calls to
InputHandler.readLine()
.
Ends when an empty line is encountered.
- Specified by:
readMultipleLines
in interface InputHandler
- Returns:
- a list of lines read
- Throws:
IOException