encodings.utf_16
index
/usr/local/lib/python2.3/encodings/utf_16.py

Python 'utf-16' Codec
 
 
Written by Marc-Andre Lemburg (mal@lemburg.com).
 
(c) Copyright CNRI, All Rights Reserved. NO WARRANTY.

 
Modules
       
codecs
sys

 
Classes
       
codecs.Codec
Codec
StreamReader(Codec, codecs.StreamReader)
StreamWriter(Codec, codecs.StreamWriter)

 
class Codec(codecs.Codec)
     Data and other attributes defined here:
decode = <built-in function utf_16_decode>
encode = <built-in function utf_16_encode>

 
class StreamReader(Codec, codecs.StreamReader)
    
Method resolution order:
StreamReader
Codec
codecs.Codec
codecs.StreamReader

Methods defined here:
__init__(self, stream, errors='strict')
read(self, size=-1)
readline(self, size=None)

Data and other attributes inherited from Codec:
decode = <built-in function utf_16_decode>
encode = <built-in function utf_16_encode>

Methods inherited from codecs.StreamReader:
__getattr__(self, name, getattr=<built-in function getattr>)
Inherit all other methods from the underlying stream.
__iter__(self)
next(self)
Return the next decoded line from the input stream.
readlines(self, sizehint=None)
Read all lines available on the input stream
and return them as list of lines.
 
Line breaks are implemented using the codec's decoder
method and are included in the list entries.
 
sizehint, if given, is passed as size argument to the
stream's .read() method.
reset(self)
Resets the codec buffers used for keeping state.
 
Note that no stream repositioning should take place.
This method is primarily intended to be able to recover
from decoding errors.

 
class StreamWriter(Codec, codecs.StreamWriter)
    
Method resolution order:
StreamWriter
Codec
codecs.Codec
codecs.StreamWriter

Methods defined here:
__init__(self, stream, errors='strict')
write(self, data)

Data and other attributes inherited from Codec:
decode = <built-in function utf_16_decode>
encode = <built-in function utf_16_encode>

Methods inherited from codecs.StreamWriter:
__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.
writelines(self, list)
Writes the concatenated list of strings to the stream
using .write().

 
Functions
       
getregentry()