MythTV  master
Public Member Functions | Public Attributes | List of all members
ttvdb.OutStreamEncoder Class Reference
Inheritance diagram for ttvdb.OutStreamEncoder:
Inheritance graph
[legend]
Collaboration diagram for ttvdb.OutStreamEncoder:
Collaboration graph
[legend]

Public Member Functions

def __init__ (self, outstream, encoding=None)
 
def write (self, obj)
 
def __getattr__ (self, attr)
 

Public Attributes

 out
 
 encoding
 

Detailed Description

Wraps a stream with an encoder

Definition at line 1403 of file ttvdb.py.

Constructor & Destructor Documentation

◆ __init__()

def ttvdb.OutStreamEncoder.__init__ (   self,
  outstream,
  encoding = None 
)

Definition at line 1405 of file ttvdb.py.

Member Function Documentation

◆ write()

def ttvdb.OutStreamEncoder.write (   self,
  obj 
)
Wraps the output stream, encoding Unicode strings with the specified encoding

Definition at line 1412 of file ttvdb.py.

◆ __getattr__()

def ttvdb.OutStreamEncoder.__getattr__ (   self,
  attr 
)
Delegate everything but write to the stream

Definition at line 1421 of file ttvdb.py.

Member Data Documentation

◆ out

ttvdb.OutStreamEncoder.out

◆ encoding

ttvdb.OutStreamEncoder.encoding

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