KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > prefuse > data > io > TableWriter


1 package prefuse.data.io;
2
3 import java.io.File JavaDoc;
4 import java.io.OutputStream JavaDoc;
5
6 import prefuse.data.Table;
7
8 /**
9  * Interface for classes that write Table data to a particular file format.
10  *
11  * @author <a HREF="http://jheer.org">jeffrey heer</a>
12  */

13 public interface TableWriter {
14
15     /**
16      * Write a table to the file with the given filename.
17      * @param table the Table to write
18      * @param filename the file to write the table to
19      * @throws DataWriteException
20      */

21     public void writeTable(Table table, String JavaDoc filename) throws DataIOException;
22     
23     /**
24      * Write a table to the given File.
25      * @param table the Table to write
26      * @param f the file to write the table to
27      * @throws DataWriteException
28      */

29     public void writeTable(Table table, File JavaDoc f) throws DataIOException;
30     
31     /**
32      * Write a table from the given OutputStream.
33      * @param table the Table to write
34      * @param os the OutputStream to write the table to
35      * @throws DataWriteException
36      */

37     public void writeTable(Table table, OutputStream JavaDoc os) throws DataIOException;
38     
39 } // end of interface TableWriter
40
Popular Tags