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

liquibase.util.csv.CSVWriter Maven / Gradle / Ivy

There is a newer version: 4.29.2
Show newest version
package liquibase.util.csv;

import com.opencsv.CSVWriterBuilder;
import com.opencsv.ICSVWriter;
import liquibase.util.ISODateFormat;

import java.io.Flushable;
import java.io.IOException;
import java.io.Writer;
import java.sql.ResultSet;
import java.sql.SQLException;

public class CSVWriter implements AutoCloseable, Flushable {
    private final ICSVWriter delegate;

    public CSVWriter(Writer writer) {
        delegate = new CSVWriterBuilder(writer).build();
    }

    @Override
    public void close() throws Exception {
        delegate.close();
    }

    public void writeNext(String[] nextLine) {
        delegate.writeNext(nextLine);
    }

    public void flush() throws IOException {
        delegate.flush();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy