public class DefaultMessage extends Message implements SendableMessage
AX25Message.Precedencecomment, extensions, msgType, S_PERMANENT, S_PERMANENT_UC, symbolCode, symTableId, USASCIIax25Frame, invalid, ISO_8859_1, originatingCallsign, PERMANENT, rcptTime, thirdParty, timestamp, UTC, UTF8| Constructor and Description |
|---|
DefaultMessage(byte[] body,
int offset,
java.lang.String tp,
long rcvTimestamp)
Create a DefaultMessage from the bytes in a byte array (such as the body of an AX25Frame).
|
DefaultMessage(char type)
Create an empty DefaultMessage with the specified message type character.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getBody(boolean countTransmission,
byte protocolId,
AX25Frame frame)
Get an ASCII-text version of this message, suitable for transmitting.
|
boolean |
isEnabled()
Test if message should still be transmitted.
|
bodyEquals, compareTo, decodeDatestamp, decodeHurricaneParams, decodeTimestamp, decodeWeatherParams, decodeWeatherParams, dup, encodeTimestamp, extractComment, extractComment, extractSymbol, formatBody, getComment, getExtension, getExtensionString, getMsgType, getReadOnlyExtensionMap, getSymbolCode, getSymTableId, hasWeather, inferSymbol, isSymbolInferred, looksLikeLongFormatLatitude, paramString, setComment, setSymbolCode, setSymTableId, storeExtension, toStringequals, extractSource, getAx25Frame, getFirstDigipeat, getLastDigipeat, getOriginalDestination, getOriginalSource, getOriginatingCallsign, getPrecedence, getRcptTime, getTimestamp, hashCode, hasPosition, hasThisFirstDigi, indexOf, indexOf, isInvalid, onlyDigits, onlyDigits, onlyDigitsOrPeriod, onlyDigitsOrSpace, onlyDigitsPlus, onlyPeriods, setAx25Frame, setInvalid, setOriginatingCallsign, setRcptTime, setTimestamp, splitclone, finalize, getClass, notify, notifyAll, wait, wait, waitduppublic DefaultMessage(byte[] body,
int offset,
java.lang.String tp,
long rcvTimestamp)
body - byte array containing the transmission format of the messageoffset - index into the array where the message startstp - String of third-party routing information (or null if this was not routed over another network)rcvTimestamp - the time (in milliseconds in Jan 1970 UTC) when this message was receivedpublic DefaultMessage(char type)
type - char type code of this message.public byte[] getBody(boolean countTransmission,
byte protocolId,
AX25Frame frame)
getBody in interface SendableMessagecountTransmission - number of times the message has been transmittedprotocolId - AX.25 protocol ID to format this message inframe - AX25Frame into which the message will be placed; the decoded message (as opposed to the byte
array encoding) should be stored into the field frame.parsedAX25MsgAX25Frame.parsedAX25Msgpublic boolean isEnabled()
isEnabled in interface SendableMessage