|
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.FastAFile
public class FastAFile
FastA file format parser. NOTE: this parser will automatically detect whether the sequencebuffer is protein, RNA or DNA.
| Field Summary |
|---|
| Fields inherited from class org.biolegato.gdesupport.files.DataFormat |
|---|
FASTA, FORMAT_LIST, GDEFILE, GDEFLAT, GENBANK |
| Constructor Summary | |
|---|---|
FastAFile()
Creates a new instance of FastAFile |
|
| Method Summary | |
|---|---|
boolean |
accept(java.io.File file)
Determines whether 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 FastA file format to sequence objects |
void |
translateTo(java.lang.Appendable result,
Seq seq,
int offset,
int length)
Translates a sequence into the FastA 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 FastAFile()
| Method Detail |
|---|
public void translateTo(java.lang.Appendable result,
Seq seq,
int offset,
int length)
throws java.io.IOException
translateTo in class DataFormatresult - the destination for the translated sequenceseq - the sequence to translate
java.io.IOException
public void translateFrom(Dataset datamodel,
java.io.BufferedReader data)
throws java.io.IOException
translateFrom in class DataFormatdatamodel - the location to store the translated sequencesdata - 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 | |||||||||