ocss.nmea.api
Class NMEAEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--ocss.nmea.api.NMEAEvent
All Implemented Interfaces:
java.io.Serializable

public class NMEAEvent
extends java.util.EventObject

Manages the kind of events that happen during the reading process

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
NMEAEvent(java.lang.Object source)
          To be used for the stop statement
NMEAEvent(java.lang.Object source, java.lang.String s)
          To be used for the DataRead and DataDetected events
 
Method Summary
 java.lang.String getContent()
          Once DataRead or DataDetected has been trapped, use this method to get the concerned data String.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NMEAEvent

public NMEAEvent(java.lang.Object source)
To be used for the stop statement


NMEAEvent

public NMEAEvent(java.lang.Object source,
                 java.lang.String s)
To be used for the DataRead and DataDetected events

Method Detail

getContent

public java.lang.String getContent()
Once DataRead or DataDetected has been trapped, use this method to get the concerned data String.

Returns:
the concerned data, as a String