Package org.apache.nifi.processor.io
Interface StreamCallback
public interface StreamCallback
-
Method Summary
Modifier and TypeMethodDescriptionvoid
process
(InputStream in, OutputStream out) Provides a managed output stream for use.
-
Method Details
-
process
Provides a managed output stream for use. The input stream is automatically opened and closed though it is ok to close the stream manually - and quite important if any streams wrapping these streams open resources which should be cleared.- Parameters:
in
- the stream to read bytes fromout
- the stream to write bytes to- Throws:
IOException
- if issues occur reading or writing the underlying streams
-