Class JsonLineWriter
- java.lang.Object
-
- fr.gouv.vitam.worker.core.distribution.JsonLineWriter
-
- All Implemented Interfaces:
java.lang.AutoCloseable
public class JsonLineWriter extends java.lang.Object implements java.lang.AutoCloseable
-
-
Constructor Summary
Constructors Constructor Description JsonLineWriter(java.io.OutputStream outputStream)
JsonLineWriter(java.io.OutputStream outputStream, boolean isEmpty)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addEntries(java.util.List<?> lines)
void
addEntry(JsonLineModel line)
void
addEntry(java.lang.Object line)
void
close()
-
-
-
Method Detail
-
addEntry
public void addEntry(JsonLineModel line) throws java.io.IOException
- Throws:
java.io.IOException
-
addEntry
public void addEntry(java.lang.Object line) throws java.io.IOException
- Throws:
java.io.IOException
-
addEntries
public void addEntries(java.util.List<?> lines) throws java.io.IOException
- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Throws:
java.io.IOException
-
-