Class FlowFileAccessOutputStream

java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
org.apache.nifi.controller.repository.io.FlowFileAccessOutputStream
All Implemented Interfaces:
Closeable, Flushable, AutoCloseable

public class FlowFileAccessOutputStream extends FilterOutputStream

Wraps an OutputStream so that if any IOException is thrown, it will be wrapped in a FlowFileAccessException. We do this to isolate IOExceptions thrown by the framework from those thrown by user code. If thrown by the framework, it generally indicates a problem communicating with the Content Repository (such as out of disk space) and session rollback is often appropriate so that the FlowFile can be processed again.