Class ProcessUnit.InputStreamHandler
java.lang.Object
de.iip_ecosphere.platform.configuration.maven.ProcessUnit.InputStreamHandler
- All Implemented Interfaces:
Closeable,AutoCloseable,Runnable
- Enclosing class:
ProcessUnit
Handles an input stream.
- Author:
- Holger Eichelberger, SSE
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateInputStreamHandler(InputStream in, Consumer<String> logger, List<Pattern> checkRegEx, Consumer<Pattern> checkResultConsumer) Creates an input stream handler. -
Method Summary
-
Field Details
-
in
-
logger
-
checkRegEx
-
checkResultConsumer
-
-
Constructor Details
-
InputStreamHandler
private InputStreamHandler(InputStream in, Consumer<String> logger, List<Pattern> checkRegEx, Consumer<Pattern> checkResultConsumer) Creates an input stream handler.- Parameters:
in- the input streamlogger- the logging consumercheckRegEx- log checking regular expressions, may be null for nonecheckResultConsumer- consumes matching results
-
-
Method Details
-
run
public void run() -
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-