'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)
parseMeta - Look for a <meta> element containing encoding information'

def __init__(self, source, encoding=None, parseMeta=True, chardet=True):

    self.rawStream = self.openStream(source)
    HTMLUnicodeInputStream.__init__(self, self.rawStream)
    self.charEncoding = (codecName(encoding), u'certain')
    self.numBytesMeta = 512
    self.numBytesChardet = 100
    self.defaultEncoding = u'windows-1252'
    if (self.charEncoding[0] is None):
        self.charEncoding = self.detectEncoding(parseMeta, chardet)
    self.reset()
