1 package prefuse.data.io; 2 3 import java.io.File ; 4 import java.io.FileNotFoundException ; 5 import java.io.FileOutputStream ; 6 7 import prefuse.data.Table; 8 9 17 public abstract class AbstractTableWriter implements TableWriter { 18 19 22 public void writeTable(Table table, String filename) throws DataIOException 23 { 24 writeTable(table, new File (filename)); 25 } 26 27 30 public void writeTable(Table table, File f) throws DataIOException { 31 try { 32 writeTable(table, new FileOutputStream (f)); 33 } catch ( FileNotFoundException e ) { 34 throw new DataIOException(e); 35 } 36 } 37 38 } | Popular Tags |