public class AisExtractor extends Object
Constructor and Description |
---|
AisExtractor(String message,
Integer minLength,
int padBits)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
getMessageId()
Returns the message id field (the first 6 characters of the decoded
message).
|
int |
getSignedValue(int from,
int to)
Returns a signed integer value using the bits from character position
start to position stop in the decoded message.
|
String |
getString(int from,
int to) |
int |
getValue(int from,
int to)
Returns an unsigned integer value using the bits from character position
start to position stop in the decoded message.
|
public AisExtractor(String message, Integer minLength, int padBits)
AisParseException
.message
- minLength
- public int getMessageId()
public int getValue(int from, int to)
from
- to
- public int getSignedValue(int from, int to)
from
- to
- public String getString(int from, int to)
Copyright © 2020. All rights reserved.