Package cssutils :: Module codec :: Class IncrementalEncoder |
[hide private]
[frames] | no frames]

# Class IncrementalEncoder

source code

                   object --+
                            |
    codecs.IncrementalEncoder --+
                                |
                               IncrementalEncoder

Instance Methods | [hide private]
__init__(self, errors=`'``strict``'`, encoding=None) Creates an IncrementalEncoder instance. | source code
iterencode(self, input) | source code
encode(self, input, final=False) Encodes input and returns the resulting object. | source code
reset(self) Resets the encoder to the initial state. | source code
_geterrors(self) | source code
_seterrors(self, errors) | source code
getstate(self) | source code
setstate(self, state) | source code
Inherited from `object`: `__delattr__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__repr__`, `__setattr__`, `__str__`

Properties | [hide private]
| errors
Inherited from `object`: `__class__`

Method Details | [hide private]

### __init__(self, errors=`'``strict``'`, encoding=None) (Constructor) | source code
Creates an IncrementalEncoder instance. The IncrementalEncoder may use different error handling schemes by providing the errors keyword argument. See the module docstring for a list of possible values. Overrides: codecs.IncrementalEncoder.__init__ (inherited documentation)

### encode(self, input, final=False) | source code
Encodes input and returns the resulting object. Overrides: codecs.IncrementalEncoder.encode (inherited documentation)

### reset(self) | source code
Resets the encoder to the initial state. Overrides: codecs.IncrementalEncoder.reset (inherited documentation)

Property Details | [hide private]

  ### errors Get Method: cssutils.codec.IncrementalEncoder._geterrors(self) Set Method: cssutils.codec.IncrementalEncoder._seterrors(self, errors) Delete Method:
      None