Besides that, you create a BufferedReader around the input stream but then ignore it except for closing.
If you create it,
you should read from the buffered input stream. Who knows, perhaps it already reads a few bytes upon creation? Those bytes will not show up in the reading of the file input stream.