All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.simpleflatmapper.lightningcsv.ClosableCsvWriter Maven / Gradle / Ivy

Go to download

Java library to map flat record - ResultSet, csv - to java object with minimum configuration and low footprint.

The newest version!
package org.simpleflatmapper.lightningcsv;

import java.io.Closeable;
import java.io.IOException;

public class ClosableCsvWriter extends CsvWriter implements Closeable {

    private final Closeable resource;
    public  ClosableCsvWriter(CellWriter cellWriter, T appendable) {
        super(cellWriter, appendable);
        this.resource = appendable;
    }

    @Override
    public void close() throws IOException {
        resource.close();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy