Java 类com.bumptech.glide.load.resource.bitmap.RecyclableBufferedInputStream 实例源码

项目:GitHub    文件:InputStreamRewinder.java   
InputStreamRewinder(InputStream is, ArrayPool byteArrayPool) {
  bufferedStream = new RecyclableBufferedInputStream(is, byteArrayPool);
  bufferedStream.mark(MARK_LIMIT);
}
项目:GitHub    文件:ExceptionCatchingInputStreamTest.java   
@Before
public void setUp() throws Exception {
  wrapped = mock(RecyclableBufferedInputStream.class);
  is = new ExceptionCatchingInputStream();
  is.setInputStream(wrapped);
}
项目:GitHub    文件:InputStreamRewinder.java   
@Synthetic
InputStreamRewinder(InputStream is, ArrayPool byteArrayPool) {
  bufferedStream = new RecyclableBufferedInputStream(is, byteArrayPool);
  bufferedStream.mark(MARK_LIMIT);
}
项目:GitHub    文件:ExceptionCatchingInputStreamTest.java   
@Before
public void setUp() throws Exception {
  wrapped = mock(RecyclableBufferedInputStream.class);
  is = new ExceptionCatchingInputStream();
  is.setInputStream(wrapped);
}
项目:GlidePlus    文件:ImageWrapperResourceDecoder.java   
public InputStream build(InputStream is, byte[] buffer) {
    return new RecyclableBufferedInputStream(is, buffer);
}