org.codehaus.plexus.components.interactivity
Class DefaultOutputHandler
java.lang.Object
org.codehaus.plexus.components.interactivity.DefaultOutputHandler
- All Implemented Interfaces:
- OutputHandler, Disposable, Initializable
public class DefaultOutputHandler
- extends Object
- implements Initializable, Disposable, OutputHandler
Default output handler, that uses the console.
- Version:
- $Id: DefaultOutputHandler.java 2648 2005-10-10 16:41:24Z brett $
- Author:
- Brett Porter
Fields inherited from interface org.codehaus.plexus.components.interactivity.OutputHandler |
ROLE |
Method Summary |
void |
dispose()
|
void |
initialize()
|
void |
write(String line)
Write a single line of input, excluding the newline at the end. |
void |
writeLine(String line)
Write a single line of input, including the newline at the end. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultOutputHandler
public DefaultOutputHandler()
initialize
public void initialize()
throws InitializationException
- Specified by:
initialize
in interface Initializable
- Throws:
InitializationException
dispose
public void dispose()
- Specified by:
dispose
in interface Disposable
write
public void write(String line)
throws IOException
- Description copied from interface:
OutputHandler
- Write a single line of input, excluding the newline at the end.
- Specified by:
write
in interface OutputHandler
- Parameters:
line
- the line
- Throws:
IOException
writeLine
public void writeLine(String line)
throws IOException
- Description copied from interface:
OutputHandler
- Write a single line of input, including the newline at the end.
- Specified by:
writeLine
in interface OutputHandler
- Parameters:
line
- the line
- Throws:
IOException