/*
* @see org.rssowl.core.interpreter.IInterpreterService#exportTo(java.io.File,
* java.util.Collection, java.util.Set)
*/
public void exportTo(File destination, Collection<? extends IFolderChild> elements, Set<Options> options) throws InterpreterException {
ITypeExporter exporter = null;
String fileName = destination.getName();
int i = fileName.lastIndexOf("."); //$NON-NLS-1$
if (i != -1 && !fileName.endsWith(".")) { //$NON-NLS-1$
String formatName = fileName.substring(i + 1);
exporter = fTypeExporters.get(formatName);
}
/* Use default as Fallback */
if (exporter == null)
exporter = fDefaultExporter;
exporter.exportTo(destination, elements, options);
}