// 原始数据输入流
InputStream rawDataStream = new ByteArrayInputStream(data);
// OutputEngine:读取输入流,输出到GZIPOutputStream,实现压缩。
OutputEngine isoe = new InputStreamOutputEngine(rawDataStream, new OutputStreamFactory() {
public OutputStream getOutputStream(OutputStream out) throws IOException {
return new GZIPOutputStream(out);
}
});