static void writeEntry(final BufferedWriter writer,
                           final TopicPartition part,
                           final long offset) throws IOException {
        writer.write(part.topic());
        writer.write(' ');
        writer.write(Integer.toString(part.partition()));
        writer.write(' ');
        writer.write(Long.toString(offset));
        writer.newLine();
    }
@throws IOException if file write operations failed with any IO exception
streams/src/main/java/org/apache/kafka/streams/state/internals/OffsetCheckpoint.java