Class FlowFileAccessInputStream

java.lang.Object
java.io.InputStream
java.io.FilterInputStream
org.apache.nifi.controller.repository.io.FlowFileAccessInputStream
All Implemented Interfaces:
Closeable, AutoCloseable

public class FlowFileAccessInputStream extends FilterInputStream

Wraps an InputStream 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 and session rollback is often appropriate so that the FlowFile can be processed again.