Package fr.gouv.vitam.worker.core.plugin.transfer.reply.utils

# Class SortedLevelJsonLineWriter

java.lang.Object
fr.gouv.vitam.worker.core.plugin.transfer.reply.utils.SortedLevelJsonLineWriter

All Implemented Interfaces:
  `AutoCloseable`

public class SortedLevelJsonLineWriter extends Object implements AutoCloseable
Helper for writing mixed level (distribution group) of json line entries into a single json line sorted by distribution group

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `SortedLevelJsonLineWriter(HandlerIO handler)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `addEntry(JsonLineModel line)`
  `void`
  `close()`
  `void`
  `exportToWorkspace(String filename, boolean ascending)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### SortedLevelJsonLineWriter

    public SortedLevelJsonLineWriter(HandlerIO handler)

- ## Method Details

  - ### addEntry

    public void addEntry(JsonLineModel line) throws IOException
    Throws:
      `IOException`

  - ### exportToWorkspace

    public void exportToWorkspace(String filename, boolean ascending) throws IOException, ProcessingException
    Throws:
      `IOException`
      `ProcessingException`

  - ### close

    public void close() throws IOException
    Specified by:
      `close` in interface `AutoCloseable`
    Throws:
      `IOException`