PyDocs

Nav

Structured Markup Processing Tools

InputSource.setByteStream

  • InputSource.setByteStream(bytefile)
Set the byte stream (a Python file-like object which does
not perform byte-to-character conversion) for this input
source.

The SAX parser will ignore this if there is also a character
stream specified, but it will use a byte stream in preference
to opening a URI connection itself.

If the application knows the character encoding of the byte
stream, it should set it with the setEncoding method.
0 Examples
No examples for xml.sax.xmlreader/InputSource.setByteStream.
See Also
No see-alsos for xml.sax.xmlreader/InputSource.setByteStream
0 Notes
No notes for InputSource.setByteStream