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

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

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

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;

import org.apache.commons.compress.compressors.bzip2.BZip2CompressorInputStream;
import org.apache.commons.compress.compressors.bzip2.BZip2CompressorOutputStream;

import com.anysoft.util.compress.AbstractCompressor;

/**
 * 基于ZIP2的压缩/解压器
 * 
 * 
采用apache comms compress实现。 * * @author duanyy * @since 1.0.11 * * @version 1.6.4.17 [20151216 duanyy]
* - 根据sonar建议优化代码
*/ public class BZIP2 extends AbstractCompressor{ @Override protected InputStream getInputStream(InputStream in) throws IOException { return new BZip2CompressorInputStream(in); } @Override protected OutputStream getOutputStream(OutputStream out) throws IOException{ return new BZip2CompressorOutputStream(out); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy