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