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
if (source.inFile != null)
{
String fileStr = source.inFile.getName();
- if (fileStr.contains(".jar") || fileStr.contains(".zip")
- || fileStr.contains(".jvp"))
+ if (fileStr.contains(".jar")
+ || fileStr.contains(".zip") || fileStr.contains(".jvp"))
{
// possibly a Jalview archive (but check further)
reply = FileFormat.Jalview;
if ((lessThan > -1)) // possible Markup Language data i.e HTML,
// RNAML, XML
{
- if (data.startsWith("<BSML>"))
- {
- reply = FileFormat.BSML;
- break;
- }
String upper = data.toUpperCase();
if (upper.substring(lessThan).startsWith("<HTML"))
{