LOG.info("Original data is " + data.length + " bytes.");
for (int i = 0; i < 1; i++) {
ByteArrayInputStream bi = new ByteArrayInputStream(data);
ByteArrayOutputStream bo = new ByteArrayOutputStream(data.length);
BlockCompressorStream co = new BlockCompressorStream(bo, new LzoCompressor(), 64 * 1024, 18);
LOG.info("Starting.");
long start = System.currentTimeMillis();
IOUtils.copy(bi, co);
co.close();
long end = System.currentTimeMillis();