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

type BufferedIncrementalEncoder

        object --+    
                 |    
IncrementalEncoder --+
                     |
                    BufferedIncrementalEncoder
Known Subclasses:

This subclass of IncrementalEncoder can be used as the baseclass for an incremental encoder if the encoder must keep some of the output in a buffer between calls to encode().

Instance Methods [hide private]
 
__init__(self, errors='strict')
Creates an IncrementalEncoder instance.
 
_buffer_encode(self, input, errors, final)
 
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: IncrementalEncoder.__init__
(inherited documentation)

encode(self, input, final=False)

 

Encodes input and returns the resulting object.

Overrides: IncrementalEncoder.encode
(inherited documentation)

reset(self)

 

Resets the encoder to the initial state.

Overrides: IncrementalEncoder.reset
(inherited documentation)