org.acmsl.antmake
Class RedirectingOutputStream

java.lang.Object
  |
  +--java.io.OutputStream
        |
        +--org.apache.tools.ant.taskdefs.LogOutputStream
              |
              +--org.acmsl.antmake.RedirectingOutputStream

public class RedirectingOutputStream
extends org.apache.tools.ant.taskdefs.LogOutputStream

Redirects a stream to the cvs log's output parser.

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

Constructor Summary
RedirectingOutputStream(ChangeLogParser parser)
          Creates a stream for given parser.
 
Method Summary
protected  ChangeLogParser getParser()
          Retrieves the parser.
protected  void processLine(java.lang.String line)
          Logs a line to the log system of ant.
protected  void setParser(ChangeLogParser parser)
          Specifies the parser.
 
Methods inherited from class org.apache.tools.ant.taskdefs.LogOutputStream
close, getMessageLevel, processBuffer, processLine, write
 
Methods inherited from class java.io.OutputStream
flush, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RedirectingOutputStream

public RedirectingOutputStream(ChangeLogParser parser)
Creates a stream for given parser.

Parameters:
parser - the parser to which the output is sent.
Method Detail

setParser

protected void setParser(ChangeLogParser parser)
Specifies the parser.

Parameters:
parser - the changelog parser.

getParser

protected ChangeLogParser getParser()
Retrieves the parser.

Returns:
such parser.

processLine

protected void processLine(java.lang.String line)
Logs a line to the log system of ant.

Overrides:
processLine in class org.apache.tools.ant.taskdefs.LogOutputStream
Parameters:
line - the line to log.


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