@Override protected void prepareQueryBatcher(QueryBatcher queryBatcher) { super.prepareQueryBatcher(queryBatcher); if (includeXmlOutputListener) { this.exportToWriterListener.onGenerateOutput(new XmlOutputListener()); } try { if (fileHeader != null) { fileWriter.write(fileHeader); fileWriter.write("\n"); } } catch (IOException e) { throw new RuntimeException(e); } }
/** * Copies all of the applicable properties to the listener that have been set on this class. * * @param listener */ protected void prepareExportToWriterListener(ExportToWriterListener listener) { super.prepareExportListener(listener); if (includeXmlOutputListener) { listener.onGenerateOutput(new XmlOutputListener()); } if (recordPrefix != null) { listener.withRecordPrefix(recordPrefix); } if (recordSuffix != null) { listener.withRecordSuffix(recordSuffix); } }
.withRecordSuffix("\n") .withMetadataCategory(DocumentManager.Metadata.COLLECTIONS) .onGenerateOutput( record -> { String uri = record.getUri();