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

Class GzipCompress

source code


Gzip compression transform. Also allows for compression level selection (default is 6).

Instance Methods [hide private]
 
__init__(self, level=6)
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, level=6)
(Constructor)

source code 

Create Transformer object.

Parameters:
  • level (number) - level is an integer from 1 to 9 controlling the level of compression; 1 is fastest and produces the least compression, 9 is slowest and produces the most. The default value is 6.
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)