|
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.GenBankFile2008
public class GenBankFile2008
This class acts as a parser/translator for GenBank files (using the file specification current to 2008).
| Field Summary | |
|---|---|
static int |
AVG_SEQ_LENGTH
|
| Fields inherited from class org.biolegato.gdesupport.files.DataFormat |
|---|
FASTA, FORMAT_LIST, GDEFILE, GDEFLAT, GENBANK |
| Constructor Summary | |
|---|---|
GenBankFile2008()
Creates a new instance of GenBankFile2008 |
|
| 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 |
void |
translateFrom(Dataset datamodel,
java.io.BufferedReader data)
Translates data in the GenBank file format to sequence objecte |
void |
translateTo(java.lang.Appendable result,
Seq seq,
int offset,
int length)
Translates a sequence into the GenBank 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 |
| Field Detail |
|---|
public static final int AVG_SEQ_LENGTH
| Constructor Detail |
|---|
public GenBankFile2008()
| 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 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 | |||||||||