Java Marine API is an NMEA 0183 parser library for Java. See project webpage for more info and documentation.
Also, basic support for decoding AIS messages is under development and included in latest snapshots for preview. As this is quite a large new feature, all feedback and contribution is much appreciated!
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
Maven snapshots are deployed to Central Repository every now and then. Notice that although they should be mostly stable, they are still work-in-progress.
Sourceforge
Project was originally published in Sourceforge.net, hence the net.sf package naming.