| Package | Description |
|---|---|
| net.maritimecloud.message |
Provides classes for serializing and deserializing messages.
|
| net.maritimecloud.net |
Provides commonly used classes for communicating with remote actors on the maritime cloud.
|
| net.maritimecloud.util |
Contains various utility classes.
|
| net.maritimecloud.util.geometry |
Contains geometry based utility classes.
|
| Modifier and Type | Field and Description |
|---|---|
static ValueSerializer<Binary> |
ValueSerializer.BINARY
A value serializer that can serialize instances of
Binary. |
| Modifier and Type | Method and Description |
|---|---|
Binary |
ValueReader.readBinary() |
Binary |
MessageReader.readBinary(int tag,
String name,
Binary defaultValue) |
| Modifier and Type | Method and Description |
|---|---|
Binary |
MessageReader.readBinary(int tag,
String name,
Binary defaultValue) |
void |
ValueWriter.writeBinary(Binary binary) |
void |
MessageWriter.writeBinary(int tag,
String name,
Binary binary) |
| Modifier and Type | Method and Description |
|---|---|
Binary |
BroadcastSubscription.getId()
Returns a unique 256 bit id for this subscription.
|
Binary |
MessageHeader.getMessageId()
Returns a unique id of the transmitted message.
|
Binary |
DispatchedMessage.getMessageId()
Returns a unique id of the message that was send.
|
| Modifier and Type | Field and Description |
|---|---|
static Binary |
Binary.EMPTY
An empty
Binary with size = 0. |
| Modifier and Type | Method and Description |
|---|---|
Binary |
Binary.concat(Binary other)
Concatenate the given
Binary to this one. |
static Binary |
Binary.copyFrom(byte... bytes)
Copies the given bytes into a
Binary. |
static Binary |
Binary.copyFrom(byte[] bytes,
int offset,
int size)
Copies the given bytes into a
Binary. |
static Binary |
Binary.copyFrom(ByteBuffer bytes)
Copies the remaining bytes from a
java.nio.ByteBuffer into a Binary. |
static Binary |
Binary.copyFrom(ByteBuffer bytes,
int size)
Copies the next
size bytes from a java.nio.ByteBuffer into a Binary. |
static Binary |
Binary.copyFrom(Iterable<Binary> byteStrings)
Concatenates all byte strings in the iterable and returns the result.
|
static Binary |
Binary.copyFrom(String text,
String charsetName)
Encodes
text into a sequence of bytes using the named charset and returns the result as a Binary. |
static Binary |
Binary.copyFromBase64(String text) |
static Binary |
Binary.copyFromHex(String text) |
static Binary |
Binary.copyFromUtf8(String text)
Encodes
text into a sequence of UTF-8 bytes and returns the result as a Binary. |
static Binary |
Binary.random(int bytes) |
static Binary |
Binary.readFrom(InputStream streamToDrain)
Completely reads the given stream's bytes into a
Binary, blocking if necessary until all bytes are read
through to the end of the stream. |
static Binary |
Binary.readFrom(InputStream streamToDrain,
int chunkSize)
Completely reads the given stream's bytes into a
Binary, blocking if necessary until all bytes are read
through to the end of the stream. |
static Binary |
Binary.readFrom(InputStream streamToDrain,
int minChunkSize,
int maxChunkSize) |
Binary |
Binary.sha256()
Returns a SHA-256 hash of this binary.
|
Binary |
Binary.substring(int beginIndex)
Return the substring from
beginIndex, inclusive, to the end of the string. |
abstract Binary |
Binary.substring(int beginIndex,
int endIndex)
Return the substring from
beginIndex, inclusive, to endIndex, exclusive. |
Binary |
Timestamp.toBinary() |
Binary |
Binary.Output.toBinary()
Creates a byte string.
|
| Modifier and Type | Method and Description |
|---|---|
int |
Binary.compareTo(Binary o) |
Binary |
Binary.concat(Binary other)
Concatenate the given
Binary to this one. |
boolean |
Binary.startsWith(Binary prefix)
Tests if this bytestring starts with the specified prefix.
|
| Modifier and Type | Method and Description |
|---|---|
static Binary |
Binary.copyFrom(Iterable<Binary> byteStrings)
Concatenates all byte strings in the iterable and returns the result.
|
| Modifier and Type | Method and Description |
|---|---|
Binary |
PositionTime.toBinary() |
Binary |
Position.toBinary()
Returns a 64 bit representation of this position.
|
| Modifier and Type | Method and Description |
|---|---|
static PositionTime |
PositionTime.fromBinary(Binary b) |
static Position |
Position.fromBinary(Binary b)
Returns a position from a 64 bit byte array encoded as decimal degress with 7 decimal places.
|
Copyright © 2012–2015 Danish Maritime Authority. All rights reserved.