@Override public InputStream rewindAndGet() throws IOException { bufferedStream.reset(); return bufferedStream; }
@Override public void cleanup() { bufferedStream.release(); }
InputStreamRewinder(InputStream is, ArrayPool byteArrayPool) { bufferedStream = new RecyclableBufferedInputStream(is, byteArrayPool); bufferedStream.mark(MARK_LIMIT); }