⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 graphwriter.java

📁 用applet实现很多应用小程序
💻 JAVA
字号:
/**
 * Copyright (c) 2004-2006 Regents of the University of California.
 * See "license-prefuse.txt" for licensing terms.
 */
package prefuse.data.io;

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

import prefuse.data.Graph;

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

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

⌨️ 快捷键说明

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