Peach :: Transformers :: compress :: GzipDecompress :: Class GzipDecompress
[hide private]

Class GzipDecompress

source code


Gzip decompression transform.

Instance Methods [hide private]
 
__init__(self, wbits=15)
Create Transformer object.
source code
string
realEncode(self, data)
Override this to implement your transform.
source code
string
realDecode(self, data)
Override this to implement your transform.
source code

Inherited from transformer.Transformer: decode, encode, getAnotherTransformer, setAnotherTransformer, transform

Method Details [hide private]

__init__(self, wbits=15)
(Constructor)

source code 

Create Transformer object.

Parameters:
  • wbits (number) - The absolute value of wbits is the base two logarithm of the size of the history buffer (the ``window size'') used when compressing data. Its absolute value should be between 8 and 15 for the most recent versions of the zlib library, larger values resulting in better compression at the expense of greater memory usage. The default value is 15. When wbits is negative, the standard gzip header is suppressed; this is an undocumented feature of the zlib library, used for compatibility with unzip's compression file format.
Overrides: transformer.Transformer.__init__

realEncode(self, data)

source code 

Override this to implement your transform.

Parameters:
  • data - Data to transform
Returns: string
transformed data
Overrides: transformer.Transformer.realEncode
(inherited documentation)

realDecode(self, data)

source code 

Override this to implement your transform.

Parameters:
  • data - Data to transform
Returns: string
transformed data
Overrides: transformer.Transformer.realDecode
(inherited documentation)