Package org.apache.ant.antunit.junit3
Class MultiProjectDemuxOutputStream
java.lang.Object
java.io.OutputStream
org.apache.ant.antunit.junit3.MultiProjectDemuxOutputStream
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
Forward stdout or stderr operation to the current antunit project.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final boolean
private org.apache.tools.ant.DemuxOutputStream
private org.apache.tools.ant.Project
private final AntUnitScriptRunner
-
Constructor Summary
ConstructorsConstructorDescriptionMultiProjectDemuxOutputStream
(AntUnitScriptRunner scriptRunner, boolean isErrorStream) -
Method Summary
Methods inherited from class java.io.OutputStream
nullOutputStream, write
-
Field Details
-
scriptRunner
-
lastProject
private org.apache.tools.ant.Project lastProject -
lastDemuxOutputStream
private org.apache.tools.ant.DemuxOutputStream lastDemuxOutputStream -
isErrorStream
private final boolean isErrorStream
-
-
Constructor Details
-
MultiProjectDemuxOutputStream
-
-
Method Details
-
getDemuxOutputStream
private org.apache.tools.ant.DemuxOutputStream getDemuxOutputStream() -
write
- Specified by:
write
in classOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classOutputStream
- Throws:
IOException
-
flush
- Specified by:
flush
in interfaceFlushable
- Overrides:
flush
in classOutputStream
- Throws:
IOException
-