|
BioLegato 0.7.5 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.files.DataFormat
org.biolegato.gdesupport.files.GDEFile
public class GDEFile
This class acts as a parser/translator for standard GDE files.
| Field Summary |
|---|
| Fields inherited from class org.biolegato.gdesupport.files.DataFormat |
|---|
FASTA, FORMAT_LIST, GDEFILE, GDEFLAT, GENBANK |
| Constructor Summary | |
|---|---|
GDEFile()
Creates a new instance of GDEFile |
|
| Method Summary | |
|---|---|
boolean |
accept(java.io.File file)
Determines whether 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. |
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 []) |
void |
translateFrom(Dataset datamodel,
java.io.BufferedReader data)
Translates data in the GDE file format to sequence objecte |
void |
translateTo(java.lang.Appendable result,
Seq seq,
int offset,
int length)
Translates a sequence into the GDE file format. |
| Methods inherited from class org.biolegato.gdesupport.files.DataFormat |
|---|
autodetect, getFormat, getName, readFile, readFile, writeAll |
| 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 void translateTo(java.lang.Appendable result,
Seq seq,
int offset,
int length)
throws java.io.IOException
translateTo in class DataFormatseq - the sequence to translate
java.io.IOException
public void translateFrom(Dataset datamodel,
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 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.5 GDE plugin | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||