Module codecs :: Class IncrementalDecoder
[hide private]
[frames] | no frames]

type IncrementalDecoder

object --+
         |
        IncrementalDecoder
Known Subclasses:

An IncrementalDecoder decodes an input in multiple steps. The input can be passed piece by piece to the decode() method. The IncrementalDecoder remembers the state of the decoding process between calls to decode().

Instance Methods [hide private]
 
__init__(self, errors='strict')
Creates a IncrementalDecoder instance.
 
decode(self, input, final=False)
Decodes input and returns the resulting object.
 
reset(self)
Resets the decoder to the initial state.
Method Details [hide private]

__init__(self, errors='strict')
(Constructor)

 

Creates a IncrementalDecoder instance.

The IncrementalDecoder may use different error handling schemes by providing the errors keyword argument. See the module docstring for a list of possible values.

Overrides: object.__init__