public enum FileFormat implements FileFormatI
{
- BSML("BSML", "bbb", true, false)
- {
- @Override
- public AlignmentFileReaderI getReader(FileParse source)
- throws IOException
- {
- return new BSMLFile(source);
- }
-
- @Override
- public AlignmentFileWriterI getWriter(AlignmentI al)
- {
- return null;
- }
- },
Fasta("Fasta", "fa, fasta, mfa, fastq", true, true)
{
@Override
break;
}
}
- if (data.startsWith("<?xml"))
- {
- data = source.nextLine();
- if (data.startsWith("<Bsml>"))
- {
- reply = FileFormat.BSML;
- break;
- }
- }
data = data.toUpperCase();
if (data.startsWith(ScoreMatrixFile.SCOREMATRIX))