类 UBXMessageFactory
java.lang.Object
net.sf.marineapi.ublox.parser.UBXMessageFactory
Factory for creating UBX message parsers. Currently the following parsers are supported:
UBXMessage00ParserUBXMessage03Parser
- 作者:
- Gunnar Hillert
-
方法概要
修饰符和类型方法说明create(UBXSentence sentence) Creates a new UBX message parser based on givenUBXSentence.static UBXMessageFactoryReturns the factory singleton.
-
方法详细资料
-
create
Creates a new UBX message parser based on givenUBXSentence.- 参数:
sentence- The UBX sentence to pass to the UBXMessageParser- 返回:
- UBXMessage instance
- 抛出:
IllegalArgumentException- If given message type is not supported.IllegalStateException- If message parser cannot be constructed due to illegal state, e.g. invalid or empty message.
-
getInstance
Returns the factory singleton.- 返回:
- UBXMessageFactory
-