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

Class BufferedIncrementalDecoder

        object --+    
                 |    
IncrementalDecoder --+
                     |
                    BufferedIncrementalDecoder
Known Subclasses:

This subclass of IncrementalDecoder can be used as the baseclass for an incremental decoder if the decoder must be able to handle incomplete byte sequences.

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

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

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__
(inherited documentation)

decode(self, input, final=False)

 

Decodes input and returns the resulting object.

Overrides: IncrementalDecoder.decode
(inherited documentation)

reset(self)

 

Resets the decoder to the initial state.

Overrides: IncrementalDecoder.reset
(inherited documentation)