Package fr.gouv.vitam.worker.core.distribution

# Class JsonLineWriter

java.lang.Object
fr.gouv.vitam.worker.core.distribution.JsonLineWriter

All Implemented Interfaces:
  `AutoCloseable`

public class JsonLineWriter extends Object implements AutoCloseable

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `JsonLineWriter(OutputStream outputStream)`
  `JsonLineWriter(OutputStream outputStream, boolean isEmpty)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `addEntries(List<?> lines)`
  `void`
  `addEntry(JsonLineModel line)`
  `void`
  `addEntry(Object line)`
  `void`
  `close()`

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

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

- ## Constructor Details

  - ### JsonLineWriter

    public JsonLineWriter(OutputStream outputStream)

  - ### JsonLineWriter

    public JsonLineWriter(OutputStream outputStream, boolean isEmpty)

- ## Method Details

  - ### addEntry

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

  - ### addEntry

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

  - ### addEntries

    public void addEntries(List<?> lines) throws IOException
    Throws:
      `IOException`

  - ### close

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