tomchavakis / marine-api

Java Marine API - NMEA 0183 library for Java

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Java Marine API Build Status Sponsored by Spice Maven Central Javadocs

Java Marine API is an NMEA 0183 parser library for Java. See project webpage for more info and documentation.

Basic support for decoding AIS messages is also under development and included in latest snapshots for preview. As this is quite a large new feature, all feedback and contribution is much appreciated.

License: LGPL

Usage

The API has been designed generic and easy to use instead for particular purpose. The NMEA stream translates into event/listener model. For example,

SentenceReader reader = new SentenceReader(new FileInputStream(file)); // any stream will do
reader.addSentenceListener(this); // "this" extends or implements sentence listener
reader.start();

reads through a file and passes all or filtered sentences to listeners:

public void sentenceRead(GGASentence gga) {
    System.out.println(gga.getPosition());
}

See examples for more.

Snapshots

Development snapshots are deployed to Maven Central Repository every now and then. Although they should be mostly stable, they are still work-in-progress.

Check changelog for current SNAPSHOT version. You may also need to tweak your Maven settings to enable snapshot dependencies.

Sourceforge

Project was originally published in Sourceforge.net, hence the net.sf package naming.

About

Java Marine API - NMEA 0183 library for Java


Languages

Language:Java 99.8%Language:HTML 0.2%