Use BufferedInputStream and Files.newBufferedReader