- if (source != null)
- {
- // read from the provided source
- al = new FormatAdapter().readFromFile(source, format);
- }
- else
- {
-
- // open a new source and read from it
- FormatAdapter fa = new FormatAdapter();
- al = fa.readFile(file, protocol, format);
- source = fa.getAlignFile(); // keep reference for later if
- // necessary.
- }
- } catch (java.io.IOException ex)
- {
- error = ex.getMessage();
+ // read from the provided source
+ al = new FormatAdapter().readFromFile(source, format);