public class AisNmeaBuffer extends Object
Constructor and Description |
---|
AisNmeaBuffer(int maxBufferSize) |
Modifier and Type | Method and Description |
---|---|
com.google.common.base.Optional<List<NmeaMessage>> |
add(NmeaMessage nmea)
Returns the complete message only once the whole group of messages has
arrived otherwise returns null.
|
static com.google.common.base.Optional<NmeaMessage> |
concatenateMessages(List<NmeaMessage> list)
Returns the aggregated message or if an
NmeaMessageParseException
occurs returns null. |
int |
size() |
public com.google.common.base.Optional<List<NmeaMessage>> add(NmeaMessage nmea)
nmea
- public static com.google.common.base.Optional<NmeaMessage> concatenateMessages(List<NmeaMessage> list)
NmeaMessageParseException
occurs returns null.list
- public int size()
Copyright © 2020. All rights reserved.