类 UBXMessageFactory

java.lang.Object
net.sf.marineapi.ublox.parser.UBXMessageFactory

public class UBXMessageFactory extends Object
Factory for creating UBX message parsers. Currently the following parsers are supported:
  • UBXMessage00Parser
  • UBXMessage03Parser
作者:
Gunnar Hillert
  • 方法详细资料

    • create

      public UBXMessage create(UBXSentence sentence)
      Creates a new UBX message parser based on given UBXSentence.
      参数:
      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

      public static UBXMessageFactory getInstance()
      Returns the factory singleton.
      返回:
      UBXMessageFactory