public class AisPacketOutputSinkJsonObject extends dk.dma.commons.util.io.OutputStreamSink<AisPacket>
| Modifier and Type | Field and Description |
|---|---|
static String |
ALLCOLUMNS
The constant ALLCOLUMNS.
|
| Constructor and Description |
|---|
AisPacketOutputSinkJsonObject(String format)
Instantiates a new Ais packet output sink json object.
|
AisPacketOutputSinkJsonObject(String format,
String separator,
String objectName)
Instantiates a new Ais packet output sink json object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
footer(OutputStream stream,
long count) |
void |
header(OutputStream stream) |
void |
process(OutputStream stream,
AisPacket message,
long count) |
public static final String ALLCOLUMNS
public AisPacketOutputSinkJsonObject(String format)
format - the formatpublic void process(OutputStream stream, AisPacket message, long count) throws IOException
process in class dk.dma.commons.util.io.OutputStreamSink<AisPacket>IOExceptionpublic void header(OutputStream stream) throws IOException
header in class dk.dma.commons.util.io.OutputStreamSink<AisPacket>IOExceptionpublic void footer(OutputStream stream, long count) throws IOException
footer in class dk.dma.commons.util.io.OutputStreamSink<AisPacket>IOExceptionCopyright © 2011–2019 Danish Maritime Authority. All rights reserved.