private void gzipEncodeData(IOBuffer iobuffer, boolean done) {
try {
if (deflater_output_buf == null) {
deflater_output_buf = new IOBuffer();
deflater_output_stream = new ThriftyGZIPOutputStream(
new IOBufferOutputStream(deflater_output_buf));
}
compressEncodeData(iobuffer, done);
} catch (IOException e) {
LOGGER.warning("unable to create deflater");
}