decode The stateless encoding and decoding functions. These must be functions or methods which have the same interface as the
reset() Resets the codec buffers used for keeping state. Note that no stream repositioning should
streamwriter streamreader Stream writer and reader classes or factory functions. These have to provide the interface
codecs.EncodedFile(file, data_encoding, file_encoding=None, errors='strict') Return a StreamRecoder instance, a
codecs.lookup_error(name) Return the error handler previously registered under the name name. Raises
streamreader Stream writer and reader classes or factory functions. These have to provide the interface defined by the base
codecs.getreader(encoding) Look up the codec for the given encoding and return its StreamReader class or factory
size The calculated size of the struct (and hence of the bytes object produced by the pack() method) corresponding
codecs.encode(obj, encoding='utf-8', errors='strict') Encodes obj using the codec registered for encoding
codecs.xmlcharrefreplace_errors(exception) Implements the 'xmlcharrefreplace' error handling (for encoding with
Page 4 of 8