Class ZlibImpl

  • All Implemented Interfaces:
    Zip

    public final class ZlibImpl
    extends BaseZip
    ZLIB压缩
    Author:
    WD
    • Constructor Summary

      Constructors 
      Constructor Description
      ZlibImpl()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected byte[] compress0​(byte[] b)
      实际压缩算法的实现
      protected byte[] extract0​(byte[] b)
      实际的解压缩算法
      • Methods inherited from class java.lang.Object

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

      • ZlibImpl

        public ZlibImpl()
    • Method Detail

      • compress0

        protected byte[] compress0​(byte[] b)
                            throws java.lang.Exception
        Description copied from class: BaseZip
        实际压缩算法的实现
        Specified by:
        compress0 in class BaseZip
        Parameters:
        b - 字节数组
        Returns:
        压缩后数据
        Throws:
        java.lang.Exception - 抛出的异常
      • extract0

        protected byte[] extract0​(byte[] b)
                           throws java.lang.Exception
        Description copied from class: BaseZip
        实际的解压缩算法
        Specified by:
        extract0 in class BaseZip
        Parameters:
        b - 字节数组
        Returns:
        压缩后数据
        Throws:
        java.lang.Exception - 抛出的异常