tablewriter.java

来自「用applet实现很多应用小程序」· Java 代码 · 共 40 行

JAVA
40
字号
package prefuse.data.io;

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

import prefuse.data.Table;

/**
 * Interface for classes that write Table data to a particular file format.
 * 
 * @author <a href="http://jheer.org">jeffrey heer</a>
 */
public interface TableWriter {

    /**
     * Write a table to the file with the given filename.
     * @param table the Table to write
     * @param filename the file to write the table to
     * @throws DataWriteException
     */
    public void writeTable(Table table, String filename) throws DataIOException;
    
    /**
     * Write a table to the given File.
     * @param table the Table to write
     * @param f the file to write the table to
     * @throws DataWriteException
     */
    public void writeTable(Table table, File f) throws DataIOException;
    
    /**
     * Write a table from the given OutputStream.
     * @param table the Table to write
     * @param os the OutputStream to write the table to
     * @throws DataWriteException
     */
    public void writeTable(Table table, OutputStream os) throws DataIOException;
    
} // end of interface TableWriter

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?