org.acmsl.antmake.cvslib
Class RedirectingStreamHandler

java.lang.Object
  |
  +--org.apache.tools.ant.taskdefs.PumpStreamHandler
        |
        +--org.acmsl.antmake.cvslib.RedirectingStreamHandler
All Implemented Interfaces:
org.apache.tools.ant.taskdefs.ExecuteStreamHandler

public class RedirectingStreamHandler
extends org.apache.tools.ant.taskdefs.PumpStreamHandler

Do-nothing handler to allow redirection of the stream to the cvs log's output parser.

Version:
$Revision: 1.1 $
Author:
Jose San Leandro, based on Peter Donald's RedirectingStreamHandler. It's package-protected, so it had to be basically copied and pasted.
See Also:
org.apache.tools.ant.taskdefs.cvslib.RedirectingStreamHandler

Constructor Summary
RedirectingStreamHandler(ChangeLogParser parser)
          Creates a RedirectingStreamHandler for given parser.
 
Method Summary
 java.lang.String getErrors()
          Retrieves the errors.
 void stop()
          Stops the stream flow.
 
Methods inherited from class org.apache.tools.ant.taskdefs.PumpStreamHandler
createProcessErrorPump, createProcessOutputPump, createPump, getErr, getOut, setProcessErrorStream, setProcessInputStream, setProcessOutputStream, start
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RedirectingStreamHandler

public RedirectingStreamHandler(ChangeLogParser parser)
Creates a RedirectingStreamHandler for given parser.

Parameters:
parser - the parser.
Method Detail

getErrors

public java.lang.String getErrors()
Retrieves the errors.

Returns:
such errors.

stop

public void stop()
          throws org.apache.tools.ant.BuildException
Stops the stream flow.

Specified by:
stop in interface org.apache.tools.ant.taskdefs.ExecuteStreamHandler
Overrides:
stop in class org.apache.tools.ant.taskdefs.PumpStreamHandler
org.apache.tools.ant.BuildException


Copyright © 2004 ACM S.L.. All Rights Reserved.