DEFLATE压缩字符串

	//deflate算法  Compress the bytes
		byte[] requestXMLDeflate = new byte[requestXmlDES.length];
		Deflater compresser  = new Deflater(Deflater.DEFLATED);
		compresser.setInput(requestXmlDES);
		compresser.finish();
		compresser.deflate(requestXMLDeflate);
		compresser.end();
改编自JDK1.6 API,具体请查看API java.uitl.zip

你可能感兴趣的:(Java)