change inFilePos from int to long and remote unused IOException