private int readInt(final BufferedReader reader) throws IOException {
        final String line = reader.readLine();
        if (line == null) {
            throw new EOFException("File ended prematurely.");
        }
        return Integer.parseInt(line);
    }
@throws IOException if file read ended prematurely
streams/src/main/java/org/apache/kafka/streams/state/internals/OffsetCheckpoint.java