Home | Trees | Index | Help |
---|
Module codecs :: Class StreamWriter |
|
Codec
--+
|
StreamWriter
StreamWriter
Method Summary | |
---|---|
Creates a StreamWriter instance. | |
Inherit all other methods from the underlying stream. | |
Decodes the object input and returns a tuple (output object, length consumed). (inherited from Codec )
| |
Encodes the object input and returns a tuple (output object, length consumed). (inherited from Codec )
| |
Flushes and resets the codec buffers used for keeping state. | |
Writes the object's contents encoded to self.stream. | |
Writes the concatenated list of strings to the stream using .write(). |
Method Details |
---|
__init__(self,
stream,
errors='strict')
|
__getattr__(self,
name,
getattr=<built-in function getattr>)
Inherit all other methods from the underlying stream.
|
reset(self)Flushes and resets the codec buffers used for keeping state. Calling this method should ensure that the data on the output is put into a clean state, that allows appending of new fresh data without having to rescan the whole stream to recover state. |
write(self, object)Writes the object's contents encoded to self.stream. |
writelines(self, list)Writes the concatenated list of strings to the stream using .write(). |
Home | Trees | Index | Help |
---|
Generated by Epydoc 1.1 on Fri Jun 27 03:47:42 2003 | http://epydoc.sf.net |