Package gw.util.process
Class ChainedOutputHandler
java.lang.Object
gw.util.process.ChainedOutputHandler
- All Implemented Interfaces:
OutputHandler
,Closeable
,AutoCloseable
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) void
add
(OutputHandler handler) void
close()
private void
close
(int idx) void
handleLine
(String line) (package private) OutputHandler
-
Field Details
-
NULL_OUTPUT_HANDLER
-
_handlers
-
-
Constructor Details
-
ChainedOutputHandler
ChainedOutputHandler()
-
-
Method Details
-
add
-
maybeReduce
OutputHandler maybeReduce() -
handleLine
- Specified by:
handleLine
in interfaceOutputHandler
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
close
- Throws:
IOException
-