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

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

There is a newer version: 0.43.1
Show newest version
package tech.tablesaw.io;

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

public class WriteOptions {

    protected final Destination dest;

    protected WriteOptions(Builder builder) {
	this.dest = builder.dest;
    }

    public Destination destination() {
	return dest;
    }

    public static class Builder {

	protected Destination dest;

	protected Builder(Destination dest) {
            this.dest = dest;
	}
	
	protected Builder(OutputStream dest) {
            this.dest = new Destination(dest);
	}

	protected Builder(Writer dest) {
            this.dest = new Destination(dest);
	}

	protected Builder(File dest) throws IOException {
            this.dest = new Destination(dest);
	}
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy