From 07b719f2fa87121ac392a92c6c51036076c293e6 Mon Sep 17 00:00:00 2001 From: Kimmo Tuukkanen Date: Sun, 13 Oct 2013 18:44:24 +0300 Subject: [PATCH] SentenceReader javadocs. --- .../sf/marineapi/nmea/io/SentenceReader.java | 42 +++++++++---------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/src/main/java/net/sf/marineapi/nmea/io/SentenceReader.java b/src/main/java/net/sf/marineapi/nmea/io/SentenceReader.java index 100c4300..ec8f3a7d 100644 --- a/src/main/java/net/sf/marineapi/nmea/io/SentenceReader.java +++ b/src/main/java/net/sf/marineapi/nmea/io/SentenceReader.java @@ -1,20 +1,20 @@ -/* +/* * SentenceReader.java * Copyright (C) 2010-2012 Kimmo Tuukkanen - * + * * This file is part of Java Marine API. * - * + * * Java Marine API is free software: you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published by the * Free Software Foundation, either version 3 of the License, or (at your * option) any later version. - * + * * Java Marine API is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License * for more details. - * + * * You should have received a copy of the GNU Lesser General Public License * along with Java Marine API. If not, see . */ @@ -38,12 +38,12 @@ /** * Sentence reader detects supported NMEA 0183 sentences from the specified - * InputStream and dispatches them to registered listeners as - * sentence events. Each event contains a parser for the read sentence. + * data source and dispatches them to registered listeners as sentence events. + * Each event contains a parser for the read sentence. *

* Parsers dispatched by reader are created using {@link SentenceFactory} class, * where you can also register your own custom parsers. - * + * * @author Kimmo Tuukkanen * @see SentenceListener * @see SentenceEvent @@ -73,7 +73,7 @@ public class SentenceReader { /** * Creates a new instance of SentenceReader. - * + * * @param source Stream from which to read NMEA data */ public SentenceReader(InputStream source) { @@ -82,7 +82,7 @@ public SentenceReader(InputStream source) { /** * Creates a SentenceReader for UDP/DatagramSocket. - * + * * @param source Socket from which to read NMEA data */ public SentenceReader(DatagramSocket source) { @@ -92,7 +92,7 @@ public SentenceReader(DatagramSocket source) { /** * Adds a {@link SentenceListener} that wants to receive all sentences read * by the reader. - * + * * @param listener {@link SentenceListener} to be registered. * @see net.sf.marineapi.nmea.event.SentenceListener */ @@ -103,7 +103,7 @@ public void addSentenceListener(SentenceListener listener) { /** * Adds a {@link SentenceListener} that is interested in receiving only * sentences of certain type. - * + * * @param sl SentenceListener to add * @param type Sentence type for which the listener is registered. * @see net.sf.marineapi.nmea.event.SentenceListener @@ -115,7 +115,7 @@ public void addSentenceListener(SentenceListener sl, SentenceId type) { /** * Adds a {@link SentenceListener} that is interested in receiving only * sentences of certain type. - * + * * @param sl SentenceListener to add * @param type Sentence type for which the listener is registered. * @see net.sf.marineapi.nmea.event.SentenceListener @@ -126,7 +126,7 @@ public void addSentenceListener(SentenceListener sl, String type) { /** * Returns the current reading paused timeout. - * + * * @return Timeout limit in milliseconds. * @see #setPauseTimeout(int) */ @@ -137,7 +137,7 @@ public int getPauseTimeout() { /** * Remove a listener from reader. When removed, listener will not receive * any events from the reader. - * + * * @param listener {@link SentenceListener} to be removed. */ public void removeSentenceListener(SentenceListener listener) { @@ -151,7 +151,7 @@ public void removeSentenceListener(SentenceListener listener) { /** * Sets the InputStream to be used as data source. If reader is running, it * is first stopped and you must call {@link #start()} to resume reading. - * + * * @param stream InputStream to set. */ public void setInputStream(InputStream stream) { @@ -164,7 +164,7 @@ public void setInputStream(InputStream stream) { /** * Sets the DatagramSocket to be used as data source. If reader is running, * it is first stopped and you must call {@link #start()} to resume reading. - * + * * @param socket DatagramSocket to set */ public void setDatagramSocket(DatagramSocket socket) { @@ -176,7 +176,7 @@ public void setDatagramSocket(DatagramSocket socket) { /** * Set timeout time for reading paused events. Default is 5000 ms. - * + * * @param millis Timeout in milliseconds. */ public void setPauseTimeout(int millis) { @@ -185,7 +185,7 @@ public void setPauseTimeout(int millis) { /** * Starts reading the input stream and dispatching events. - * + * * @throws IllegalStateException If reader is already running. */ public void start() { @@ -254,7 +254,7 @@ void fireReadingStopped() { /** * Dispatch data to all listeners. - * + * * @param sentence sentence string. */ void fireSentenceEvent(Sentence sentence) { @@ -281,7 +281,7 @@ void fireSentenceEvent(Sentence sentence) { /** * Registers a SentenceListener to hash map with given key. - * + * * @param type Sentence type to register for * @param listener SentenceListener to register */