LimitInputStream limitResultIn = new LimitInputStream(stream);
limitResultIn.setLimit(lmfs);
stream = limitResultIn;
}
// Wrap in a stream throwing exception on invocations when closed.
stream = new CloseFilterInputStream(stream);
currentStream = stream;
return stream;
} catch (Throwable t) {
throw noStateChangeException(t);