public interface MessageReader extends Closeable
| Modifier and Type | Method and Description |
|---|---|
default void |
close() |
MessageFormatType |
getFormatType() |
boolean |
isNext(int tag,
String name) |
Binary |
readBinary(int tag,
String name,
Binary defaultValue) |
Boolean |
readBoolean(int tag,
String name,
Boolean defaultValue) |
BigDecimal |
readDecimal(int tag,
String name) |
BigDecimal |
readDecimal(int tag,
String name,
BigDecimal defaultValue) |
double |
readDouble(int tag,
String name) |
Double |
readDouble(int tag,
String name,
Double defaultValue) |
<T extends MessageEnum> |
readEnum(int tag,
String name,
MessageEnumSerializer<T> factory) |
float |
readFloat(int tag,
String name) |
Float |
readFloat(int tag,
String name,
Float defaultValue) |
int |
readInt(int tag,
String name) |
Integer |
readInt(int tag,
String name,
Integer defaultValue) |
long |
readInt64(int tag,
String name) |
Long |
readInt64(int tag,
String name,
Long defaultValue) |
<T> List<T> |
readList(int tag,
String name,
ValueSerializer<T> parser) |
<K,V> Map<K,V> |
readMap(int tag,
String name,
ValueSerializer<K> keyParser,
ValueSerializer<V> valueParser) |
<T extends Message> |
readMessage(int tag,
String name,
MessageSerializer<T> parser) |
Position |
readPosition(int tag,
String name) |
Position |
readPosition(int tag,
String name,
Position defaultValue) |
PositionTime |
readPositionTime(int tag,
String name) |
PositionTime |
readPositionTime(int tag,
String name,
PositionTime defaultValue) |
<T> Set<T> |
readSet(int tag,
String name,
ValueSerializer<T> parser) |
String |
readText(int tag,
String name,
String defaultValue) |
Timestamp |
readTimestamp(int tag,
String name) |
Timestamp |
readTimestamp(int tag,
String name,
Timestamp defaultValue) |
BigInteger |
readVarInt(int tag,
String name) |
BigInteger |
readVarInt(int tag,
String name,
BigInteger defaultValue) |
MessageFormatType getFormatType()
default void close()
throws IOException
close in interface AutoCloseableclose in interface CloseableIOExceptionboolean isNext(int tag,
String name)
throws IOException
IOExceptionBinary readBinary(int tag, String name, Binary defaultValue) throws IOException
IOExceptionBoolean readBoolean(int tag, String name, Boolean defaultValue) throws IOException
IOExceptionBigDecimal readDecimal(int tag, String name) throws IOException
IOExceptionBigDecimal readDecimal(int tag, String name, BigDecimal defaultValue) throws IOException
IOExceptiondouble readDouble(int tag,
String name)
throws IOException
IOExceptionDouble readDouble(int tag, String name, Double defaultValue) throws IOException
IOException<T extends MessageEnum> T readEnum(int tag, String name, MessageEnumSerializer<T> factory) throws IOException
IOExceptionfloat readFloat(int tag,
String name)
throws IOException
IOExceptionFloat readFloat(int tag, String name, Float defaultValue) throws IOException
IOExceptionint readInt(int tag,
String name)
throws IOException
IOExceptionInteger readInt(int tag, String name, Integer defaultValue) throws IOException
IOExceptionlong readInt64(int tag,
String name)
throws IOException
IOExceptionLong readInt64(int tag, String name, Long defaultValue) throws IOException
IOException<T> List<T> readList(int tag, String name, ValueSerializer<T> parser) throws IOException
IOException<K,V> Map<K,V> readMap(int tag, String name, ValueSerializer<K> keyParser, ValueSerializer<V> valueParser) throws IOException
IOException<T extends Message> T readMessage(int tag, String name, MessageSerializer<T> parser) throws IOException
IOExceptionPosition readPosition(int tag, String name) throws IOException
IOExceptionPosition readPosition(int tag, String name, Position defaultValue) throws IOException
IOExceptionPositionTime readPositionTime(int tag, String name) throws IOException
IOExceptionPositionTime readPositionTime(int tag, String name, PositionTime defaultValue) throws IOException
IOException<T> Set<T> readSet(int tag, String name, ValueSerializer<T> parser) throws IOException
IOExceptionString readText(int tag, String name, String defaultValue) throws IOException
IOExceptionTimestamp readTimestamp(int tag, String name) throws IOException
IOExceptionTimestamp readTimestamp(int tag, String name, Timestamp defaultValue) throws IOException
IOExceptionBigInteger readVarInt(int tag, String name) throws IOException
IOExceptionBigInteger readVarInt(int tag, String name, BigInteger defaultValue) throws IOException
IOExceptionCopyright © 2012–2015 Danish Maritime Authority. All rights reserved.