use of com.octo.android.robospice.request.ProgressByteProcessor in project robospice by stephanenicolas.
the class SmallBinaryRequest method processStream.
@Override
public InputStream processStream(final int contentLength, final InputStream inputStream) throws IOException {
final ByteArrayOutputStream bos = new ByteArrayOutputStream();
readBytes(inputStream, new ProgressByteProcessor(this, bos, contentLength));
final byte[] bytes = bos.toByteArray();
return new ByteArrayInputStream(bytes);
}
Aggregations