class_docstr: Encapsulation of the information needed by the XMLReader to
  read entities.
  
  This class may include information about the public identifier,
  system identifier, byte stream (possibly with character encoding
  information) and/or the character stream of an entity.
  
  Applications will create objects of this class for use in the
  XMLReader.parse method and for returning from
  EntityResolver.resolveEntity.
  
  An InputSource belongs to the application, the XMLReader is not
  allowed to modify InputSource objects passed to it from the
  application, although it may make copies and modify those.
class_docstr_tok: ["Encapsulation","of","the","information","needed","by","the","XMLReader","to","read","entities",".","This","class","may","include","information","about","the","public","identifier",",","system","identifier",",","byte","stream","(","possibly","with","character","encoding","information",")","and\/or","the","character","stream","of","an","entity",".","Applications","will","create","objects","of","this","class","for","use","in","the","XMLReader.parse","method","and","for","returning","from","EntityResolver.resolveEntity",".","An","InputSource","belongs","to","the","application",",","the","XMLReader","is","not","allowed","to","modify","InputSource","objects","passed","to","it","from","the","application",",","although","it","may","make","copies","and","modify","those","."]
docstr: 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.
docstr_tok: ["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","."]
code: def setByteStream(self, 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."""
      self.__bytefile = bytefile
  
imports: from .None import handler
  from ._exceptions import SAXNotSupportedException, SAXNotRecognizedException
label_desc: Use image node_id 8 for calling the InputSource obj's underlying member method code with example usage: obj.setByteStream(bytefile) without return types