Class SortedLevelJsonLineWriter
java.lang.Object
fr.gouv.vitam.worker.core.plugin.transfer.reply.utils.SortedLevelJsonLineWriter
- All Implemented Interfaces:
AutoCloseable
Helper for writing mixed level (distribution group) of json line entries into a single json line sorted by distribution group
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddEntry(JsonLineModel line) voidclose()voidexportToWorkspace(String filename, boolean ascending)
-
Constructor Details
-
SortedLevelJsonLineWriter
-
-
Method Details
-
addEntry
- Throws:
IOException
-
exportToWorkspace
public void exportToWorkspace(String filename, boolean ascending) throws IOException, ProcessingException - Throws:
IOExceptionProcessingException
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
IOException
-