reset() Flushes and resets the codec buffers used for keeping state. Calling this method should
readline([size[, keepends]]) Read one line from the input stream and return the decoded data. size
struct.calcsize(fmt) Return the size of the struct (and hence of the bytes object produced by pack(fmt, ...)) corresponding
class codecs.StreamRecoder(stream, encode, decode, Reader, Writer, errors) Creates a StreamRecoder instance which
codecs.register_error(name, error_handler) Register the error handling function error_handler under the name name
getstate() Return the current state of the decoder. This must be a tuple with two items, the first must be the buffer containing
encode(object[, final]) Encodes object (taking the current state of the encoder into account) and returns the resulting
reset() Reset the decoder to the initial state.
codecs.iterencode(iterator, encoding, errors='strict', **kwargs) Uses an incremental encoder to iteratively encode the input
codecs.getincrementaldecoder(encoding) Look up the codec for the given encoding and return its incremental decoder class or
Page 6 of 8