def METHOD_NAME(self):
    txt = self.inputs[0].read(flags='rb').decode('latin-1')
    if txt.find('LiTTleEnDian') > -1:
        self.generator.tmp.append('little')
    elif txt.find('BIGenDianSyS') > -1:
        self.generator.tmp.append('big')
    else:
        return -1