BioLegato 0.7.5 table plugin

org.biolegato.tables
Class TSVFile

java.lang.Object
  extended by javax.swing.filechooser.FileFilter
      extended by org.biolegato.tables.TSVFile

public class TSVFile
extends javax.swing.filechooser.FileFilter

TSV file format parser.

Author:
Graham Alvare, Brian Fristensky

Constructor Summary
TSVFile()
          Creates a new instance of CSVFile
 
Method Summary
 boolean accept(java.io.File file)
          Determines whether or not a specified file is of type GenBank file (based on extension).
 java.lang.String getDescription()
          Returns a description of the file format that can be displayed to the user.
 boolean isFormat(java.io.Reader test)
          Used to auto-detect Bio Legato formats
static void readFile(javax.swing.table.DefaultTableModel table, java.io.File currentFile)
           
static void writeFile(java.io.File currentFile, java.lang.String[][] data)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TSVFile

public TSVFile()
Creates a new instance of CSVFile

Method Detail

accept

public boolean accept(java.io.File file)
Determines whether or not a specified file is of type GenBank file (based on extension). Currently the only extensions supported are ".csv", ".tab", and ".tsv"

Specified by:
accept in class javax.swing.filechooser.FileFilter
Parameters:
file - the file to test
Returns:
true if the file is of type FastA file (otherwise false)
See Also:
FileFilter.accept(java.io.File)

getDescription

public java.lang.String getDescription()
Returns a description of the file format that can be displayed to the user.

Specified by:
getDescription in class javax.swing.filechooser.FileFilter
Returns:
the string description of the file format
See Also:
FileFilter.getDescription()

isFormat

public boolean isFormat(java.io.Reader test)
Used to auto-detect Bio Legato formats

Parameters:
test - the reader to parse data from
Returns:
whether or not the format is correct

readFile

public static void readFile(javax.swing.table.DefaultTableModel table,
                            java.io.File currentFile)

writeFile

public static void writeFile(java.io.File currentFile,
                             java.lang.String[][] data)

BioLegato 0.7.5 table plugin

Copyright © 2008-2011 University of Manitoba.