All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.anysoft.util.compress.compressor.GZIP Maven / Gradle / Ivy

There is a newer version: 1.6.17
Show newest version
package com.anysoft.util.compress.compressor;

import java.io.InputStream;
import java.io.OutputStream;
import java.util.zip.GZIPInputStream;
import java.util.zip.GZIPOutputStream;

import com.anysoft.util.compress.AbstractCompressor;

/**
 * 基于GZIP的压缩/解压器
 * 
 * 
采用Java内置GZIP实现。 * * @author duanyy * @since 1.0.11 * * @version 1.6.4.17 [20151216 duanyy]
* - 根据sonar建议优化代码
*/ public class GZIP extends AbstractCompressor{ @Override protected InputStream getInputStream(InputStream in) throws Exception { return new GZIPInputStream(in); } @Override protected OutputStream getOutputStream(OutputStream out)throws Exception{ return new GZIPOutputStream(out); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy