import jalview.util.MessageManager;
import java.io.File;
+import java.io.IOException;
import java.io.InputStream;
import java.util.List;
public static final boolean isValidFormat(String format,
boolean forwriting)
{
+ if (format == null)
+ {
+ return false;
+ }
boolean valid = false;
String[] format_list = (forwriting) ? WRITEABLE_FORMATS
: READABLE_FORMATS;
ex.printStackTrace();
}
}
-
+ if (format.equalsIgnoreCase("HTML"))
+ {
+ throw new IOException(e.getMessage());
+ }
// If we get to this stage, the format was not supported
throw new java.io.IOException(SUPPORTED_FORMATS);
}
aselview.addAnnotation(aa);
}
}
-
+ viewpanel = ap;
return formatSequences(format, aselview, jvsuffix);
}
afile.setNewlineString(newline);
afile.addJVSuffix(jvsuffix);
-
afile.setExportSettings(exportSettings);
-
afile.configureForView(viewpanel);
// check whether we were given a specific alignment to export, rather than