Class ProcessStreamExceptionHandler
- java.lang.Object
-
- com.github.toolarium.system.command.process.stream.handler.ProcessStreamExceptionHandler
-
- All Implemented Interfaces:
IProcessStreamExceptionHandler
,java.io.Closeable
,java.lang.AutoCloseable
public class ProcessStreamExceptionHandler extends java.lang.Object implements IProcessStreamExceptionHandler, java.io.Closeable
Implements a stream support for theIProcessStreamExceptionHandler
.
-
-
Constructor Summary
Constructors Constructor Description ProcessStreamExceptionHandler(java.io.OutputStream outputStream)
Constructor for ProcessStreamExceptionHandler
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
void
handle(java.io.IOException ex)
Handle exception
-
-
-
Method Detail
-
handle
public void handle(java.io.IOException ex)
Description copied from interface:IProcessStreamExceptionHandler
Handle exception- Specified by:
handle
in interfaceIProcessStreamExceptionHandler
- Parameters:
ex
- the exception- See Also:
IProcessStreamExceptionHandler.handle(java.io.IOException)
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Throws:
java.io.IOException
- See Also:
Closeable.close()
-
-