|
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.GDEFlatfile
public class GDEFlatfile
This class acts as a parser/translator for GDE flat files.
| Constructor Summary | |
|---|---|
GDEFlatfile()
Creates a new instance of GDEFlatfile |
|
| Method Summary | |
|---|---|
boolean |
accept(java.io.File file)
Determines whether or not a specified file is of type GDE flat file (based on extension). |
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 |
Cell[] |
translateFrom(java.io.BufferedReader data)
Translates data in the GDE flat file format to sequence objecte |
java.lang.String |
translateTo(Cell seq)
Translates a sequence into the GDE flat 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 GDEFlatfile()
| 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 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 | |||||||||