int n;
String classname;
Class cls;
String[] ext;
String desc;
FileSourcedConverter converter;
ExtensionFileFilter filter;
if (loader)
m_LoaderFileFilters = new Vector<ExtensionFileFilter>();
else
m_SaverFileFilters = new Vector<ExtensionFileFilter>();
for (i = 0; i < classnames.size(); i++) {
classname = (String) classnames.get(i);
// get data from converter
try {
cls = Class.forName(classname);
converter = (FileSourcedConverter) cls.newInstance();
ext = converter.getFileExtensions();
desc = converter.getFileDescription();
}
catch (Exception e) {
cls = null;
converter = null;
ext = new String[0];