|
BioLegato 0.7.3 GDE plugin | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.filechooser.FileFilter
org.biolegato.gdesupport.formats.DataFormat
org.biolegato.gdesupport.formats.GDEFile
public class GDEFile
This class acts as a parser/translator for standard GDE files.
| Constructor Summary | |
|---|---|
GDEFile()
Creates a new instance of GDEFile |
|
| Method Summary | |
|---|---|
boolean |
accept(java.io.File file)
Determines whether or not a specified file is of type GDE file (based on extension) Currently the only extension supported is ".gde". |
java.lang.String |
getDescription()
Returns a description of the file format that can be displayed to the user. |
java.lang.String |
getName()
Obtains the internal name of the file format (this is great for hashtables storage and searching). |
boolean |
isFormat(java.io.Reader test)
Used to auto-detect Bio Legato formats |
static java.lang.String |
quote(java.lang.String input)
Quotes a GDE string (replaces " with ' and {} with []) |
Cell[] |
translateFrom(java.io.BufferedReader data)
Translates data in the GDE file format to sequence objecte |
java.lang.String |
translateTo(Cell seq)
Translates a sequence into the GDE file format. |
| Methods inherited from class org.biolegato.gdesupport.formats.DataFormat |
|---|
addFormats, auto, auto, auto, getFormat, readFile, writeFile |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GDEFile()
| Method Detail |
|---|
public java.lang.String translateTo(Cell seq)
translateTo in class DataFormatseq - the sequence to translate
public Cell[] translateFrom(java.io.BufferedReader data)
throws java.io.IOException
translateFrom in class DataFormatdata - the buffered reader to parse
java.io.IOException - any exeptions that occur while reading the stream are passedpublic boolean accept(java.io.File file)
accept in class javax.swing.filechooser.FileFilterfile - the file to test
FileFilter.accept(java.io.File)public java.lang.String getName()
getName in class DataFormatpublic java.lang.String getDescription()
getDescription in class javax.swing.filechooser.FileFilterFileFilter.getDescription()public static java.lang.String quote(java.lang.String input)
input - the string to quote
public boolean isFormat(java.io.Reader test)
isFormat in class DataFormattest - the reader to parse data from
|
BioLegato 0.7.3 GDE plugin | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||