/** * writes the data to the given stream (always in ARFF format). * * @param stream the stream to write the data to (ARFF format) * @param data the data to store * @throws Exception if writing fails */ public static void write(OutputStream stream, Instances data) throws Exception { DataSink sink; sink = new DataSink(stream); sink.write(data); }
/** * writes the data to the given file. * * @param filename the file to write the data to * @param data the data to store * @throws Exception if writing fails */ public static void write(String filename, Instances data) throws Exception { DataSink sink; sink = new DataSink(filename); sink.write(data); }
/** * writes the data to the given stream (always in ARFF format). * * @param stream the stream to write the data to (ARFF format) * @param data the data to store * @throws Exception if writing fails */ public static void write(OutputStream stream, Instances data) throws Exception { DataSink sink; sink = new DataSink(stream); sink.write(data); }
/** * writes the data to the given file. * * @param filename the file to write the data to * @param data the data to store * @throws Exception if writing fails */ public static void write(String filename, Instances data) throws Exception { DataSink sink; sink = new DataSink(filename); sink.write(data); }
/** * writes the data via the given saver. * * @param saver the saver to use for writing the data * @param data the data to store * @throws Exception if writing fails */ public static void write(Saver saver, Instances data) throws Exception { DataSink sink; sink = new DataSink(saver); sink.write(data); }
/** * writes the data via the given saver. * * @param saver the saver to use for writing the data * @param data the data to store * @throws Exception if writing fails */ public static void write(Saver saver, Instances data) throws Exception { DataSink sink; sink = new DataSink(saver); sink.write(data); }