Public Member Functions | Public Attributes
tornado.util.GzipDecompressor Class Reference

List of all members.

Public Member Functions

def __init__
def decompress
def flush
def unconsumed_tail

Public Attributes

 decompressobj

Detailed Description

Streaming gzip decompressor.

The interface is like that of `zlib.decompressobj` (without some of the
optional arguments, but it understands gzip headers and checksums.

Definition at line 41 of file util.py.


Constructor & Destructor Documentation

Definition at line 47 of file util.py.


Member Function Documentation

def tornado.util.GzipDecompressor.decompress (   self,
  value,
  max_length = None 
)
Decompress a chunk, returning newly-available data.

Some data may be buffered for later processing; `flush` must
be called when there is no more input data to ensure that
all data was processed.

If ``max_length`` is given, some input data may be left over
in ``unconsumed_tail``; you must retrieve this value and pass
it back to a future call to `decompress` if it is not empty.

Definition at line 53 of file util.py.

Return any remaining buffered data not yet returned by decompress.

Also checks for errors such as truncated input.
No other methods may be called on this object after `flush`.

Definition at line 72 of file util.py.

Returns the unconsumed portion left over

Definition at line 67 of file util.py.


Member Data Documentation

Definition at line 47 of file util.py.


The documentation for this class was generated from the following file:


rosbridge_server
Author(s): Jonathan Mace
autogenerated on Thu Aug 27 2015 14:50:40