executor.scheduleAtFixedRate(new ByteBufferProgress(bbu), 2, 2, TimeUnit.SECONDS);
try {
InputStream is = new ByteBufferInputStream(bbu);
OutputStream os = new ByteBufferOutputStream(bbc);
enc.code(is, os);
} finally {
executor.shutdown();
}
bbc.flip();