类 AbstractDataReader

java.lang.Object
net.sf.marineapi.nmea.io.AbstractDataReader
所有已实现的接口:
Runnable

public abstract class AbstractDataReader extends Object implements Runnable
Abstract base class for data readers, with common methods and run loop for firing events to listeners managed by the parent SentenceReader.

Extend this class to implement custom readers, for example when NMEA data is delivered embedded in a proprietary format. Otherwise, it is recommended to use SentenceReader directly with InputStream or DatagramSocket.

作者:
Kimmo Tuukkanen
另请参阅:
  • 构造器详细资料

    • AbstractDataReader

      protected AbstractDataReader()
      Default constructor.
  • 方法详细资料

    • read

      public abstract String read() throws Exception
      Read one NMEA-0183 sentence and return it.
      返回:
      Sentence String or null if nothing was read.
      抛出:
      Exception - On read failure.
    • run

      public void run()
      指定者:
      run 在接口中 Runnable
    • stop

      public void stop()
      Stops the reader permanently.