Class GzipImpl

  • All Implemented Interfaces:
    Zip

    public final class GzipImpl
    extends BaseCompressor
    GZIP压缩
    Author:
    WD
    • Constructor Summary

      Constructors 
      Constructor Description
      GzipImpl()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.io.InputStream is​(java.io.ByteArrayInputStream bis)
      根据子类实现生成解压流
      protected java.io.OutputStream os​(java.io.ByteArrayOutputStream bos)
      根据子类实现生成压缩流
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GzipImpl

        public GzipImpl()
    • Method Detail

      • is

        protected java.io.InputStream is​(java.io.ByteArrayInputStream bis)
                                  throws java.lang.Exception
        Description copied from class: BaseCompressor
        根据子类实现生成解压流
        Specified by:
        is in class BaseCompressor
        Parameters:
        bis - 字节输入流
        Returns:
        Throws:
        java.lang.Exception
      • os

        protected java.io.OutputStream os​(java.io.ByteArrayOutputStream bos)
                                   throws java.lang.Exception
        Description copied from class: BaseCompressor
        根据子类实现生成压缩流
        Specified by:
        os in class BaseCompressor
        Parameters:
        bos - 字节输出流
        Returns:
        Throws:
        java.lang.Exception