malliina / 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.

Downloads

Pre-built jars may be downloaded from releases and Sourceforge.net. Project was originally published in Sourceforge, hence the net.sf.marineapi package naming.

Download Java Marine API

Maven

Development snapshots and releases are deployed to Maven Central Repository every now and then. However, there is no plan or schedule for this. Also, notice that although the snapshots should be mostly stable, they are still work-in-progress.

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

About

Java Marine API - NMEA 0183 library for Java


Languages

Language:Java 99.8%Language:HTML 0.2%