public class AisPacketOutputSinks extends Object
| Modifier and Type | Field and Description |
|---|---|
static dk.dma.commons.util.io.OutputStreamSink<AisPacket> |
OUTPUT_PREFIXED_SENTENCES
A sink that writes an AIS packet to an output stream.
|
static dk.dma.commons.util.io.OutputStreamSink<AisPacket> |
OUTPUT_TO_HTML
A sink that writes an AIS packet to an output stream.
|
static dk.dma.commons.util.io.OutputStreamSink<AisPacket> |
OUTPUT_TO_TEXT
A sink that writes an ais packet to an output stream.
|
static dk.dma.commons.util.io.OutputStreamSink<AisPacket> |
PAST_TRACK_JSON
A sink that writes an AIS packet the past track as a JSON to an output stream.
|
| Constructor and Description |
|---|
AisPacketOutputSinks() |
| Modifier and Type | Method and Description |
|---|---|
static dk.dma.commons.util.io.OutputStreamSink<AisPacket> |
getOutputSink(String... params)
Gets output sink.
|
static dk.dma.commons.util.io.OutputStreamSink<AisPacket> |
jsonMessageSink()
A sink that writes ais messages as JSON to an output stream.
|
static dk.dma.commons.util.io.OutputStreamSink<AisPacket> |
jsonObjectSink(String format)
Json object sink output stream sink.
|
static dk.dma.commons.util.io.OutputStreamSink<AisPacket> |
jsonPosListSink()
Json pos list sink output stream sink.
|
static dk.dma.commons.util.io.OutputStreamSink<AisPacket> |
jsonStaticListSink()
Json static list sink output stream sink.
|
static dk.dma.commons.util.io.OutputStreamSink<AisPacket> |
newCsvSink()
New csv sink output stream sink.
|
static dk.dma.commons.util.io.OutputStreamSink<AisPacket> |
newCsvSink(String format)
New csv sink output stream sink.
|
static dk.dma.commons.util.io.OutputStreamSink<AisPacket> |
newCsvStatefulSink()
New csv stateful sink output stream sink.
|
static dk.dma.commons.util.io.OutputStreamSink<AisPacket> |
newCsvStatefulSink(String format)
New csv stateful sink output stream sink.
|
static dk.dma.commons.util.io.OutputStreamSink<AisPacket> |
newKmlSink()
New kml sink output stream sink.
|
static dk.dma.commons.util.io.OutputStreamSink<AisPacket> |
newKmlSink(Predicate<? super AisPacket> filter)
New kml sink output stream sink.
|
static dk.dma.commons.util.io.OutputStreamSink<AisPacket> |
newKmlSink(Predicate<? super AisPacket> filter,
boolean createSituationFolder,
boolean createMovementsFolder,
boolean createTracksFolder,
Predicate<? super AisPacket> isPrimaryTarget,
Predicate<? super AisPacket> isSecondaryTarget,
Predicate<? super AisPacket> triggerSnapshot,
Supplier<? extends String> snapshotDescriptionSupplier,
Supplier<? extends Integer> movementInterpolationStep,
BiFunction<? super ShipTypeCargo,? super NavigationalStatus,? extends String> iconHrefSupplier)
New kml sink output stream sink.
|
static dk.dma.commons.util.io.OutputStreamSink<AisPacket> |
newKmlSink(Predicate<? super AisPacket> filter,
boolean createSituationFolder,
boolean createMovementsFolder,
boolean createTracksFolder,
Predicate<? super AisPacket> isPrimaryTarget,
Predicate<? super AisPacket> isSecondaryTarget,
Predicate<? super AisPacket> triggerSnapshot,
Supplier<? extends String> snapshotDescriptionSupplier,
Supplier<? extends Integer> movementInterpolationStep,
Supplier<? extends String> supplyTitle,
Supplier<? extends String> supplyDescription,
BiFunction<? super ShipTypeCargo,? super NavigationalStatus,? extends String> iconHrefSupplier)
New kml sink output stream sink.
|
static dk.dma.commons.util.io.OutputStreamSink<AisPacket> |
newKmzSink()
New kmz sink output stream sink.
|
static dk.dma.commons.util.io.OutputStreamSink<AisPacket> |
newKmzSink(Predicate<? super AisPacket> filter)
New kmz sink output stream sink.
|
static dk.dma.commons.util.io.OutputStreamSink<AisPacket> |
newKmzSink(Predicate<? super AisPacket> filter,
boolean createSituationFolder,
boolean createMovementsFolder,
boolean createTracksFolder,
Predicate<? super AisPacket> isPrimaryTarget,
Predicate<? super AisPacket> isSecondaryTarget,
Predicate<? super AisPacket> triggerSnapshot,
Supplier<? extends String> snapshotDescriptionSupplier,
Supplier<? extends Integer> movementInterpolationStep,
BiFunction<? super ShipTypeCargo,? super NavigationalStatus,? extends String> iconHrefSupplier)
New kmz sink output stream sink.
|
static dk.dma.commons.util.io.OutputStreamSink<AisPacket> |
newKmzSink(Predicate<? super AisPacket> filter,
boolean createSituationFolder,
boolean createMovementsFolder,
boolean createTracksFolder,
Predicate<? super AisPacket> isPrimaryTarget,
Predicate<? super AisPacket> isSecondaryTarget,
Predicate<? super AisPacket> triggerSnapshot,
Supplier<? extends String> snapshotDescriptionSupplier,
Supplier<? extends Integer> movementInterpolationStep,
Supplier<? extends String> supplyTitle,
Supplier<? extends String> supplyDescription,
BiFunction<? super ShipTypeCargo,? super NavigationalStatus,? extends String> iconHrefSupplier)
New kmz sink output stream sink.
|
static dk.dma.commons.util.io.OutputStreamSink<AisPacket> |
newTableSink(String columns,
boolean writeHeader)
New table sink output stream sink.
|
static dk.dma.commons.util.io.OutputStreamSink<AisPacket> |
newTableSink(String columns,
boolean writeHeader,
String seperator)
New table sink output stream sink.
|
static dk.dma.commons.util.io.OutputStreamSink<AisPacket> |
OUTPUT_TO_KML()
A sink that transforms ais stream into kml.
|
public static final dk.dma.commons.util.io.OutputStreamSink<AisPacket> OUTPUT_TO_TEXT
public static final dk.dma.commons.util.io.OutputStreamSink<AisPacket> PAST_TRACK_JSON
public static final dk.dma.commons.util.io.OutputStreamSink<AisPacket> OUTPUT_PREFIXED_SENTENCES
public static final dk.dma.commons.util.io.OutputStreamSink<AisPacket> OUTPUT_TO_HTML
public static dk.dma.commons.util.io.OutputStreamSink<AisPacket> jsonMessageSink()
public static dk.dma.commons.util.io.OutputStreamSink<AisPacket> jsonObjectSink(String format)
format - the formatpublic static dk.dma.commons.util.io.OutputStreamSink<AisPacket> jsonPosListSink()
public static dk.dma.commons.util.io.OutputStreamSink<AisPacket> jsonStaticListSink()
public static final dk.dma.commons.util.io.OutputStreamSink<AisPacket> OUTPUT_TO_KML()
public static dk.dma.commons.util.io.OutputStreamSink<AisPacket> newTableSink(String columns, boolean writeHeader)
columns - the columnswriteHeader - the write headerpublic static dk.dma.commons.util.io.OutputStreamSink<AisPacket> newTableSink(String columns, boolean writeHeader, String seperator)
columns - the columnswriteHeader - the write headerseperator - the seperatorpublic static dk.dma.commons.util.io.OutputStreamSink<AisPacket> newCsvSink()
public static dk.dma.commons.util.io.OutputStreamSink<AisPacket> newCsvSink(String format)
format - the formatpublic static dk.dma.commons.util.io.OutputStreamSink<AisPacket> newCsvStatefulSink()
public static dk.dma.commons.util.io.OutputStreamSink<AisPacket> newCsvStatefulSink(String format)
format - the formatpublic static dk.dma.commons.util.io.OutputStreamSink<AisPacket> newKmlSink()
public static dk.dma.commons.util.io.OutputStreamSink<AisPacket> newKmlSink(Predicate<? super AisPacket> filter)
filter - the filterpublic static dk.dma.commons.util.io.OutputStreamSink<AisPacket> newKmlSink(Predicate<? super AisPacket> filter, boolean createSituationFolder, boolean createMovementsFolder, boolean createTracksFolder, Predicate<? super AisPacket> isPrimaryTarget, Predicate<? super AisPacket> isSecondaryTarget, Predicate<? super AisPacket> triggerSnapshot, Supplier<? extends String> snapshotDescriptionSupplier, Supplier<? extends Integer> movementInterpolationStep, BiFunction<? super ShipTypeCargo,? super NavigationalStatus,? extends String> iconHrefSupplier)
filter - the filtercreateSituationFolder - the create situation foldercreateMovementsFolder - the create movements foldercreateTracksFolder - the create tracks folderisPrimaryTarget - the is primary targetisSecondaryTarget - the is secondary targettriggerSnapshot - the trigger snapshotsnapshotDescriptionSupplier - the snapshot description suppliermovementInterpolationStep - the movement interpolation stepiconHrefSupplier - the icon href supplierpublic static dk.dma.commons.util.io.OutputStreamSink<AisPacket> newKmlSink(Predicate<? super AisPacket> filter, boolean createSituationFolder, boolean createMovementsFolder, boolean createTracksFolder, Predicate<? super AisPacket> isPrimaryTarget, Predicate<? super AisPacket> isSecondaryTarget, Predicate<? super AisPacket> triggerSnapshot, Supplier<? extends String> snapshotDescriptionSupplier, Supplier<? extends Integer> movementInterpolationStep, Supplier<? extends String> supplyTitle, Supplier<? extends String> supplyDescription, BiFunction<? super ShipTypeCargo,? super NavigationalStatus,? extends String> iconHrefSupplier)
filter - the filtercreateSituationFolder - the create situation foldercreateMovementsFolder - the create movements foldercreateTracksFolder - the create tracks folderisPrimaryTarget - the is primary targetisSecondaryTarget - the is secondary targettriggerSnapshot - the trigger snapshotsnapshotDescriptionSupplier - the snapshot description suppliermovementInterpolationStep - the movement interpolation stepsupplyTitle - the supply titlesupplyDescription - the supply descriptioniconHrefSupplier - the icon href supplierpublic static dk.dma.commons.util.io.OutputStreamSink<AisPacket> newKmzSink()
public static dk.dma.commons.util.io.OutputStreamSink<AisPacket> newKmzSink(Predicate<? super AisPacket> filter)
filter - the filterpublic static dk.dma.commons.util.io.OutputStreamSink<AisPacket> newKmzSink(Predicate<? super AisPacket> filter, boolean createSituationFolder, boolean createMovementsFolder, boolean createTracksFolder, Predicate<? super AisPacket> isPrimaryTarget, Predicate<? super AisPacket> isSecondaryTarget, Predicate<? super AisPacket> triggerSnapshot, Supplier<? extends String> snapshotDescriptionSupplier, Supplier<? extends Integer> movementInterpolationStep, BiFunction<? super ShipTypeCargo,? super NavigationalStatus,? extends String> iconHrefSupplier)
filter - the filtercreateSituationFolder - the create situation foldercreateMovementsFolder - the create movements foldercreateTracksFolder - the create tracks folderisPrimaryTarget - the is primary targetisSecondaryTarget - the is secondary targettriggerSnapshot - the trigger snapshotsnapshotDescriptionSupplier - the snapshot description suppliermovementInterpolationStep - the movement interpolation stepiconHrefSupplier - the icon href supplierpublic static dk.dma.commons.util.io.OutputStreamSink<AisPacket> newKmzSink(Predicate<? super AisPacket> filter, boolean createSituationFolder, boolean createMovementsFolder, boolean createTracksFolder, Predicate<? super AisPacket> isPrimaryTarget, Predicate<? super AisPacket> isSecondaryTarget, Predicate<? super AisPacket> triggerSnapshot, Supplier<? extends String> snapshotDescriptionSupplier, Supplier<? extends Integer> movementInterpolationStep, Supplier<? extends String> supplyTitle, Supplier<? extends String> supplyDescription, BiFunction<? super ShipTypeCargo,? super NavigationalStatus,? extends String> iconHrefSupplier)
filter - the filtercreateSituationFolder - the create situation foldercreateMovementsFolder - the create movements foldercreateTracksFolder - the create tracks folderisPrimaryTarget - the is primary targetisSecondaryTarget - the is secondary targettriggerSnapshot - the trigger snapshotsnapshotDescriptionSupplier - the snapshot description suppliermovementInterpolationStep - the movement interpolation stepsupplyTitle - the supply titlesupplyDescription - the supply descriptioniconHrefSupplier - the icon href supplierpublic static dk.dma.commons.util.io.OutputStreamSink<AisPacket> getOutputSink(String... params) throws IllegalArgumentException, IllegalAccessException, NoSuchFieldException, SecurityException
params - the paramsIllegalArgumentException - the illegal argument exceptionIllegalAccessException - the illegal access exceptionNoSuchFieldException - the no such field exceptionSecurityException - the security exceptionCopyright © 2011–2019 Danish Maritime Authority. All rights reserved.