OpenQuizz
Une application de gestion des contenus pédagogiques
IncrementalDecoder Class Reference
Inheritance diagram for IncrementalDecoder:
Collaboration diagram for IncrementalDecoder:

Public Member Functions

def __init__ (self, fallback_encoding, errors='replace')
 
def decode (self, input, final=False)
 

Data Fields

 encoding
 

Detailed Description

“Push”-based decoder.

:param fallback_encoding:
    An :class:`Encoding` object or a label string.
    The encoding to use if :obj:`input` does note have a BOM.
:param errors: Type of error handling. See :func:`codecs.register`.
:raises: :exc:`~exceptions.LookupError` for an unknown encoding label.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  fallback_encoding,
  errors = 'replace' 
)

Member Function Documentation

◆ decode()

def decode (   self,
  input,
  final = False 
)
Decode one chunk of the input.

:param input: A byte string.
:param final:
    Indicate that no more input is available.
    Must be :obj:`True` if this is the last call.
:returns: An Unicode string.

Field Documentation

◆ encoding

encoding

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