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 OutputStream
private final Lock
private final org.apache.nifi.logging.ComponentLog
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
flush()
void
setDelegate
(OutputStream delegate) private void
sleep
(long millis) void
write
(byte[] b) void
write
(byte[] b, int off, int len) void
write
(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:
write
in classOutputStream
- Throws:
IOException
-
write
- Overrides:
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
-