/** * Export the given {@link LinkedSpecificationItem} in the given output * format to a file * * @param itemStream * {@link SpecificationItem} to export * @param outputFile * path to which the export is written * @param settings * exporter settings */ public void exportToPath(final Stream<SpecificationItem> itemStream, final Path outputFile, final ExportSettings settings) { final ExporterFactory factory = this.factoryLoader .getExporterFactory(settings.getOutputFormat()); factory.createExporter(outputFile, settings.getOutputFormat(), StandardCharsets.UTF_8, settings.getNewline(), itemStream).runExport(); } }
/** * Export the given {@link LinkedSpecificationItem} in the given output * format to a file * * @param itemStream * {@link SpecificationItem} to export * @param outputFile * path to which the export is written * @param settings * exporter settings */ public void exportToPath(final Stream<SpecificationItem> itemStream, final Path outputFile, final ExportSettings settings) { final ExporterFactory factory = this.factoryLoader .getExporterFactory(settings.getOutputFormat()); factory.createExporter(outputFile, settings.getOutputFormat(), StandardCharsets.UTF_8, settings.getNewline(), itemStream).runExport(); } }