import jalview.io.DataSourceType;
import jalview.io.FileFormat;
import jalview.io.FileFormatI;
+import jalview.io.FileFormats;
import jalview.io.FileParse;
import jalview.io.IdentifyFile;
} catch (Exception ex)
{
- System.out.println("Exception checking resources: " + file + " "
- + ex);
+ System.out.println(
+ "Exception checking resources: " + file + " " + ex);
}
if (file.indexOf("://") > -1)
{
+ " cannot be read with protocol==" + protocol);
return;
}
- FileFormatI format = FileFormat.valueOf(getParameter("format"));
+ FileFormatI format = FileFormats.getInstance()
+ .forName(getParameter("format"));
if (format == null)
{
format = new IdentifyFile().identify(file, protocol);
}
if (al != null)
{
- System.out.println(new AppletFormatAdapter().formatSequences(
- FileFormat.Fasta, al, false));
+ System.out.println(new AppletFormatAdapter()
+ .formatSequences(FileFormat.Fasta, al, false));
}
} catch (Exception e)
{