Is it generally a bad idea to read from a FlowFile InputStream outside of
the session.read() /InputStreamCallback?
For example, if you did something like the following:
final ObjectHolder<InputStream> inputStreamHolder = new
ObjectHolder<>(null);
session.read(flowFile, new InputStreamCallback() {
@Override
public void process(InputStream in) throws IOException {
inputStreamHolder.set(in);
}
});
// read from inputStreamHolder.get()
I was expecting that this wouldn't work, but it appears that it does so I
am wondering if there are any negative ramifications of doing this.
-Bryan