class ObjectEntryWriter implements AutoCloseable {

    public void writeEof() throws IOException {
        ensureNotClosed();
        ensureNotEof();
        if (!isEmpty) {
            writer.append("\n");
        }
        isEmpty = false;
        writer.write(EMPTY_ENTRY);
        isEofWritten = true;
    }

    public  ObjectEntryWriter(OutputStream ouputStream);

}