Gephi Toolkit Javadoc

org.gephi.utils
Class TableCSVExporter

java.lang.Object
  extended by org.gephi.utils.TableCSVExporter

public class TableCSVExporter
extends java.lang.Object


Constructor Summary
TableCSVExporter()
           
 
Method Summary
static void writeCSVFile(javax.swing.JTable table, java.io.File file, java.lang.Character separator, java.nio.charset.Charset charset, java.lang.Integer[] columnsToExport)
          Export a JTable to the specified file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableCSVExporter

public TableCSVExporter()
Method Detail

writeCSVFile

public static void writeCSVFile(javax.swing.JTable table,
                                java.io.File file,
                                java.lang.Character separator,
                                java.nio.charset.Charset charset,
                                java.lang.Integer[] columnsToExport)
                         throws java.io.IOException

Export a JTable to the specified file.

Parameters:
table - Table to export
file - File to write
separator - Separator to use for separating values of a row in the CSV file. If null ',' will be used.
charset - Charset encoding for the file
columnsToExport - Indicates the indexes of the columns to export. All columns will be exported if null
Throws:
java.io.IOException - When an error happens while writing the file

Gephi Toolkit Javadoc