Package tdi :: Package markup :: Package text :: Module encoder :: Class TextEncoder
[frames] | no frames]

Class TextEncoder

source code

object --+
         |
        TextEncoder

Encoder for text output
Instance Methods
 
__init__(self, encoding)
Initialization
source code
 
attribute(self, value) source code
 
content(self, value) source code
 
encode(self, value) source code
 
endtag(self, name) source code
 
escape(self, value) source code
 
name(self, name) source code
 
starttag(self, name, attr, closed) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables
  __implements__ = [<class 'tdi.interfaces.EncoderInterface'>]
Properties

Inherited from object: __class__

Method Details

__init__(self, encoding)
(Constructor)

source code 
Initialization
Parameters:
  • encoding (str) - The target encoding
Overrides: object.__init__

attribute(self, value)

source code 

See Also: EncoderInterface

content(self, value)

source code 

See Also: EncoderInterface

encode(self, value)

source code 

See Also: EncoderInterface

endtag(self, name)

source code 

See Also: EncoderInterface

escape(self, value)

source code 

See Also: EncoderInterface

name(self, name)

source code 

See Also: EncoderInterface

starttag(self, name, attr, closed)

source code 

See Also: EncoderInterface


Class Variable Details

__implements__

Value:
[<class 'tdi.interfaces.EncoderInterface'>]