Class DefaultOutputHandler
- java.lang.Object
-
- org.codehaus.plexus.components.interactivity.DefaultOutputHandler
-
- All Implemented Interfaces:
OutputHandler,org.codehaus.plexus.personality.plexus.lifecycle.phase.Disposable,org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable
public class DefaultOutputHandler extends java.lang.Object implements org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable, org.codehaus.plexus.personality.plexus.lifecycle.phase.Disposable, OutputHandler
Default output handler, that uses the console.- Version:
- $Id: DefaultOutputHandler.java 2648 2005-10-10 16:41:24Z brett $
- Author:
- Brett Porter
-
-
Field Summary
-
Fields inherited from interface org.codehaus.plexus.components.interactivity.OutputHandler
ROLE
-
-
Constructor Summary
Constructors Constructor Description DefaultOutputHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddispose()voidinitialize()voidwrite(java.lang.String line)Write a single line of input, excluding the newline at the end.voidwriteLine(java.lang.String line)Write a single line of input, including the newline at the end.
-
-
-
Method Detail
-
initialize
public void initialize() throws org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException- Specified by:
initializein interfaceorg.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable- Throws:
org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException
-
dispose
public void dispose()
- Specified by:
disposein interfaceorg.codehaus.plexus.personality.plexus.lifecycle.phase.Disposable
-
write
public void write(java.lang.String line) throws java.io.IOExceptionDescription copied from interface:OutputHandlerWrite a single line of input, excluding the newline at the end.- Specified by:
writein interfaceOutputHandler- Parameters:
line- the line- Throws:
java.io.IOException
-
writeLine
public void writeLine(java.lang.String line) throws java.io.IOExceptionDescription copied from interface:OutputHandlerWrite a single line of input, including the newline at the end.- Specified by:
writeLinein interfaceOutputHandler- Parameters:
line- the line- Throws:
java.io.IOException
-
-