Set the character stream for this input source. (The stream must be a Python 2.0 Unicode-wrapped file-like that performs conversion to Unicode strings.) If there is a character stream specified, the SAX parser will ignore any byte stream and will not attempt to open
(self, charfile)
| 258 | return self.__bytefile |
| 259 | |
| 260 | def setCharacterStream(self, charfile): |
| 261 | """Set the character stream for this input source. (The stream |
| 262 | must be a Python 2.0 Unicode-wrapped file-like that performs |
| 263 | conversion to Unicode strings.) |
| 264 | |
| 265 | If there is a character stream specified, the SAX parser will |
| 266 | ignore any byte stream and will not attempt to open a URI |
| 267 | connection to the system identifier.""" |
| 268 | self.__charfile = charfile |
| 269 | |
| 270 | def getCharacterStream(self): |
| 271 | "Get the character stream for this input source." |
no outgoing calls