int compressionLevel = enableDebug ? Deflater.BEST_SPEED : Deflater.BEST_COMPRESSION;
Deflater deflater = new Deflater(compressionLevel);
DeflaterOutputStream deflaterStream = new DeflaterOutputStream(output, deflater);
deflaterStream.write(outputBuffer.getBytes(), 0, outputBuffer.size());
deflaterStream.finish();
deflater.end();
deflaterStream.flush();
break;
}
case NONE:
{