类 AISMessageFactory
java.lang.Object
net.sf.marineapi.ais.parser.AISMessageFactory
Factory for creating AIS message parsers.
- 作者:
- Kimmo Tuukkanen
-
方法概要
修饰符和类型方法说明create(AISSentence... sentences) Creates a new AIS message parser based on given sentences.static AISMessageFactoryReturns the factory singleton.
-
方法详细资料
-
create
Creates a new AIS message parser based on given sentences.- 参数:
sentences- One or more AIS sentences in correct sequence order.- 返回:
- AISMessage instance
- 抛出:
IllegalArgumentException- If given message type is not supported or sequence order is incorrect.IllegalStateException- If message parser cannot be constructed due to illegal state, e.g. invalid or empty message.
-
getInstance
Returns the factory singleton.- 返回:
- AISMessageFactory
-