'This should be called by the user of this class to strip a
detected BOM from the bytes for subsequent decoding and
analysis.'

def strip_bom(self, bom):

    assert (self._bytes[:len(bom)] == bom)
    self._bytes = self._bytes[len(bom):]
