class ObjectBuffer implements AutoCloseable {

    public void close() throws IOException {
        generator.close();
        FilesHelper.deleteQuietly(tempFile.toFile());
        closed = true;
    }

    public  ObjectBuffer(Class<T> bufferedClass);

}