|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.fhg.igd.gps.NMEA183Tokenizer
The NMEA183Tokenizer
allows an application to break a string
representation of a NMEA183 sentence into tokens.
Field Summary | |
private boolean |
checksumfollows_
Flag to indicate whether the next token is a checksum or not. |
private StringTokenizer |
tokenizer_
|
Constructor Summary | |
(package private) |
NMEA183Tokenizer(String sentence)
Constructs a new NMEA183Tokenizer to parse the specified
string representation of a NMEA183Sentence sentence . |
Method Summary | |
boolean |
checksumFollows()
Tests if the next token from this tokenizer is a checksum. |
boolean |
hasMoreTokens()
Tests if there are more tokens available from this tokenizer's string. |
String |
nextToken()
Returns the next token from this tokenizer. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private StringTokenizer tokenizer_
private boolean checksumfollows_
Constructor Detail |
NMEA183Tokenizer(String sentence)
NMEA183Tokenizer
to parse the specified
string representation of a NMEA183Sentence sentence
.
sentence
- the string representation of the NMEA183Sentence to parseMethod Detail |
public boolean checksumFollows()
true
a subsequent call to nextToken
will return a checksum.
true
if the next token from this tokenizer is a
checksum; false
otherwisepublic boolean hasMoreTokens()
true
, then a subsequent call to
nextToken
will successfully return a token.
true
if and only if there is at least one token in
the string after the current position; false
otherwise.public String nextToken() throws NoSuchElementException
NoSuchElementException
- if there are no more tokens in this
tokenizer's string
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |