logger.info("Downloading " + path.getRemotePath());
downloadCount.incrementAndGet();
final AmazonS3 client = getS3Client();
long contentLen = client.getObjectMetadata(getPrefix(), path.getRemotePath()).getContentLength();
path.setSize(contentLen);
RangeReadInputStream rris = new RangeReadInputStream(client, getPrefix(), path);
final long bufSize = MAX_BUFFERED_IN_STREAM_SIZE > contentLen ? contentLen : MAX_BUFFERED_IN_STREAM_SIZE;
compress.decompressAndClose(new BufferedInputStream(rris, (int)bufSize), os);
bytesDownloaded.addAndGet(contentLen);
}
catch (Exception e)