Class ExecuteProcess.ProxyOutputStream
java.lang.Object
java.io.OutputStream
org.apache.nifi.processors.standard.ExecuteProcess.ProxyOutputStream
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
- Enclosing class:
ExecuteProcess
Output stream that is used to wrap another output stream in a way that the underlying output stream can be swapped out for a different one when needed
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate OutputStreamprivate final Lockprivate final org.apache.nifi.logging.ComponentLog -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidflush()voidsetDelegate(OutputStream delegate) private voidsleep(long millis) voidwrite(byte[] b) voidwrite(byte[] b, int off, int len) voidwrite(int b) Methods inherited from class java.io.OutputStream
nullOutputStream
-
Field Details
-
logger
private final org.apache.nifi.logging.ComponentLog logger -
lock
-
delegate
-
-
Constructor Details
-
ProxyOutputStream
public ProxyOutputStream(org.apache.nifi.logging.ComponentLog logger)
-
-
Method Details
-
setDelegate
-
sleep
private void sleep(long millis) -
write
- Specified by:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-
flush
- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream- Throws:
IOException
-