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

type IncrementalEncoder

object --+
         |
        IncrementalEncoder
Known Subclasses:

An IncrementalEncoder encodes an input in multiple steps. The input can be passed piece by piece to the encode() method. The IncrementalEncoder remembers the state of the Encoding process between calls to encode().

Instance Methods [hide private]
 
__init__(self, errors='strict')
Creates an IncrementalEncoder instance.
 
encode(self, input, final=False)
Encodes input and returns the resulting object.
 
reset(self)
Resets the encoder to the initial state.
Method Details [hide private]

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

 

Creates an IncrementalEncoder instance.

The IncrementalEncoder 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__