use of biblemulticonverter.format.paratext.ParatextBook in project BibleMultiConverter by schierlm.
the class ParatextConverter method run.
@Override
public void run(String... args) throws Exception {
Module<ImportFormat> importModule = Main.importFormats.get(args[0]);
Module<ExportFormat> exportModule = Main.exportFormats.get(args[2]);
AbstractParatextFormat importFormat = (AbstractParatextFormat) importModule.getImplementationClass().newInstance();
AbstractParatextFormat exportFormat = (AbstractParatextFormat) exportModule.getImplementationClass().newInstance();
List<ParatextBook> books = importFormat.doImportBooks(new File(args[1]));
exportFormat.doExportBooks(books, Arrays.copyOfRange(args, 3, args.length));
}
Aggregations