def __init__(self, source, override_encoding=None, transport_encoding=None,<EOL>same_origin_parent_encoding=None, likely_encoding=None,<EOL>default_encoding="<STR_LIT>", useChardet=True):
<EOL>self.rawStream = self.openStream(source)<EOL>HTMLUnicodeInputStream.__init__(self, self.rawStream)<EOL>self.numBytesMeta = <NUM_LIT><EOL>self.numBytesChardet = <NUM_LIT:100><EOL>self.override_encoding = override_encoding<EOL>self.transport_encoding = transport_encoding<EOL>self.same_origin_parent_encoding = same_origin_parent_encoding<EOL>self.likely_encoding = likely_encoding<EOL>self.default_encoding = default_encoding<EOL>self.charEncoding = self.determineEncoding(useChardet)<EOL>assert self.charEncoding[<NUM_LIT:0>] is not None<EOL>self.reset()<EOL>
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)