Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes
encodings.unicode_internal.IncrementalEncoder Class Reference
Inheritance diagram for encodings.unicode_internal.IncrementalEncoder:
Inheritance graph
[legend]
Collaboration diagram for encodings.unicode_internal.IncrementalEncoder:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def encode
def reset
def getstate
def setstate

Public Attributes

 errors
 buffer
_PyObject_HEAD_EXTRA Py_ssize_t ob_refcnt
struct _typeobjectob_type

Detailed Description

Definition at line 20 of file unicode_internal.py.


Member Function Documentation

def encodings.unicode_internal.IncrementalEncoder.encode (   self,
  input,
  final = False 
)
Encodes input and returns the resulting object.

Reimplemented from codecs.IncrementalEncoder.

Definition at line 21 of file unicode_internal.py.

00021 
00022     def encode(self, input, final=False):
00023         return codecs.unicode_internal_encode(input, self.errors)[0]

Here is the caller graph for this function:

def codecs.IncrementalEncoder.getstate (   self) [inherited]
Return the current state of the encoder.

Reimplemented in codecs.BufferedIncrementalEncoder, encodings.utf_8_sig.IncrementalEncoder, encodings.utf_16.IncrementalEncoder, and encodings.utf_32.IncrementalEncoder.

Definition at line 186 of file codecs.py.

00186 
00187     def getstate(self):
00188         """
00189         Return the current state of the encoder.
00190         """
00191         return 0

def codecs.IncrementalEncoder.reset (   self) [inherited]
Resets the encoder to the initial state.

Reimplemented in codecs.BufferedIncrementalEncoder, encodings.bz2_codec.IncrementalEncoder, encodings.zlib_codec.IncrementalEncoder, encodings.utf_8_sig.IncrementalEncoder, encodings.utf_16.IncrementalEncoder, and encodings.utf_32.IncrementalEncoder.

Definition at line 181 of file codecs.py.

00181 
00182     def reset(self):
00183         """
00184         Resets the encoder to the initial state.
00185         """

Here is the caller graph for this function:

def codecs.IncrementalEncoder.setstate (   self,
  state 
) [inherited]
Set the current state of the encoder. state must have been
returned by getstate().

Reimplemented in codecs.BufferedIncrementalEncoder, encodings.utf_8_sig.IncrementalEncoder, encodings.utf_16.IncrementalEncoder, and encodings.utf_32.IncrementalEncoder.

Definition at line 192 of file codecs.py.

00192 
00193     def setstate(self, state):
00194         """
00195         Set the current state of the encoder. state must have been
00196         returned by getstate().
00197         """


Member Data Documentation

Reimplemented in codecs.BufferedIncrementalEncoder.

Definition at line 173 of file codecs.py.

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.

Reimplemented in encodings.bz2_codec.IncrementalEncoder, encodings.zlib_codec.IncrementalEncoder, encodings.base64_codec.IncrementalEncoder, and encodings.hex_codec.IncrementalEncoder.

Definition at line 172 of file codecs.py.

Definition at line 107 of file object.h.

struct _typeobject* _object::ob_type [inherited]

Definition at line 108 of file object.h.


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