A simple example of usage.
CMSCompressedDataStreamGenerator gen = new CMSCompressedDataStreamGenerator(); OutputStream cOut = gen.open(outputStream, CMSCompressedDataStreamGenerator.ZLIB); cOut.write(data); cOut.close();