接口 DateSentence
- 所有超级接口:
Sentence
- 所有已知子接口:
RMCSentence,ZDASentence
Sentences that contains date information. Notice that some sentences may
contain only time without the date.
- 作者:
- Kimmo Tuukkanen
- 另请参阅:
-
字段概要
从接口继承的字段 net.sf.marineapi.nmea.sentence.Sentence
ALTERNATIVE_BEGIN_CHAR, BEGIN_CHAR, CHECKSUM_DELIMITER, FIELD_DELIMITER, MAX_LENGTH, TERMINATOR -
方法概要
从接口继承的方法 net.sf.marineapi.nmea.sentence.Sentence
getBeginChar, getFieldCount, getSentenceId, getTalkerId, isAISSentence, isProprietary, isValid, reset, setBeginChar, setTalkerId, toSentence, toSentence, toString
-
方法详细资料
-
getDate
Date getDate()Parses the date information from sentence fields and returns aDate.- 返回:
- Date object
- 抛出:
DataNotAvailableException- If the data is not available.ParseException- If the field contains unexpected or illegal value.
-
setDate
Set date. Depending on the sentence type, the values may be inserted to multiple fields or combined into one. Four-digit year value may also be reduced into two-digit format.- 参数:
date-Date
-