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

tech.tablesaw.io.DataFrameWriter Maven / Gradle / Ivy

package tech.tablesaw.io;

import java.io.File;
import java.io.IOException;
import java.io.OutputStream;

import tech.tablesaw.api.Table;
import tech.tablesaw.io.csv.CsvWriter;
import tech.tablesaw.io.html.HtmlTableWriter;

public class DataFrameWriter {

  private final Table table;

  public DataFrameWriter(Table table) {
      this.table = table;
  }

  public void csv(String file) throws IOException {
      CsvWriter.write(table, file);
  }

  public void csv(File file) throws IOException {
      CsvWriter.write(table, file);
  }

  public void html(OutputStream stream) throws IOException {
      HtmlTableWriter.write(table, stream);
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy