Пример #1
0
 @Override
 public InputStream rewindAndGet() throws IOException {
   bufferedStream.reset();
   return bufferedStream;
 }
Пример #2
0
 @Override
 public void cleanup() {
   bufferedStream.release();
 }
Пример #3
0
 InputStreamRewinder(InputStream is, ArrayPool byteArrayPool) {
   bufferedStream = new RecyclableBufferedInputStream(is, byteArrayPool);
   bufferedStream.mark(MARK_LIMIT);
 }