parameters: (self, source, override_encoding=None, transport_encoding=None,
                   same_origin_parent_encoding=None, likely_encoding=None,
                   default_encoding="windows-1252", useChardet=True)
docstring: Initialises the HTMLInputStream.
  
          HTMLInputStream(source, [encoding]) -> Normalized stream from source
          for use by html5lib.
  
          source can be either a file-object, local filename or a string.
  
          The optional encoding parameter must be a string that indicates
          the encoding.  If specified, that encoding will be used,
          regardless of any BOM or later declaration (such as in a meta
          element)
docstring_summary: Initialises the HTMLInputStream.
docstring_tokens: Initialises the HTMLInputStream .
function: def __init__(self, source, override_encoding=None, transport_encoding=None,
                   same_origin_parent_encoding=None, likely_encoding=None,
                   default_encoding="windows-1252", useChardet=True):
          """Initialises the HTMLInputStream.
  
          HTMLInputStream(source, [encoding]) -> Normalized stream from source
          for use by html5lib.
  
          source can be either a file-object, local filename or a string.
  
          The optional encoding parameter must be a string that indicates
          the encoding.  If specified, that encoding will be used,
          regardless of any BOM or later declaration (such as in a meta
          element)
  
          """
          # Raw Stream - for unicode objects this will encode to utf-8 and set
          #              self.charEncoding as appropriate
          self.rawStream = self.openStream(source)
  
          HTMLUnicodeInputStream.__init__(self, self.rawStream)
  
          # Encoding Information
          # Number of bytes to use when looking for a meta element with
          # encoding information
          self.numBytesMeta = 1024
          # Number of bytes to use when using detecting encoding using chardet
          self.numBytesChardet = 100
          # Things from args
          self.override_encoding = override_encoding
          self.transport_encoding = transport_encoding
          self.same_origin_parent_encoding = same_origin_parent_encoding
          self.likely_encoding = likely_encoding
          self.default_encoding = default_encoding
  
          # Determine encoding
          self.charEncoding = self.determineEncoding(useChardet)
          assert self.charEncoding[0] is not None
  
          # Call superclass
          self.reset()
function_tokens: def __init__ ( self , source , override_encoding = None , transport_encoding = None , same_origin_parent_encoding = None , likely_encoding = None , default_encoding = "windows-1252" , useChardet = True ) : # Raw Stream - for unicode objects this will encode to utf-8 and set #              self.charEncoding as appropriate self . rawStream = self . openStream ( source ) HTMLUnicodeInputStream . __init__ ( self , self . rawStream ) # Encoding Information # Number of bytes to use when looking for a meta element with # encoding information self . numBytesMeta = 1024 # Number of bytes to use when using detecting encoding using chardet self . numBytesChardet = 100 # Things from args self . override_encoding = override_encoding self . transport_encoding = transport_encoding self . same_origin_parent_encoding = same_origin_parent_encoding self . likely_encoding = likely_encoding self . default_encoding = default_encoding # Determine encoding self . charEncoding = self . determineEncoding ( useChardet ) assert self . charEncoding [ 0 ] is not None # Call superclass self . reset ( )