|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.mbari.siam.distributed.PacketParser
org.mbari.siam.utils.DelimitedStringParser
public abstract class DelimitedStringParser
Base class for PacketParsers which work on delimited string data. Note that PacketParser is intended to be transferred across a network, and hence implements the java.io.Serializable interface. Thus any member objects of your subclass must either implement Serializable, or be declared 'transient' or 'static'.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.mbari.siam.distributed.PacketParser |
|---|
PacketParser.Field, PacketParser.Record |
| Field Summary | |
|---|---|
protected java.lang.String |
_delimiters
|
protected java.util.Vector |
_fieldVector
|
| Fields inherited from class org.mbari.siam.distributed.PacketParser |
|---|
_registryName |
| Constructor Summary | |
|---|---|
DelimitedStringParser()
no arg constructor |
|
DelimitedStringParser(java.lang.String delimiters)
Create parser, specifying the delimiter string. |
|
DelimitedStringParser(java.lang.String registryName,
java.lang.String delimiters)
Create parser, specifying the delimiter string. |
|
| Method Summary | |
|---|---|
protected java.lang.Number |
decimalValue(java.lang.String token)
Return Number represented by input String token; Number is null if token does not represent a decimal number. |
PacketParser.Field[] |
parseFields(DevicePacket packet)
Return fields parsed from DevicePacket. |
protected abstract PacketParser.Field |
processToken(int nToken,
java.lang.String token)
Process the token, whose position in string is nToken. |
| Methods inherited from class org.mbari.siam.distributed.PacketParser |
|---|
getField |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String _delimiters
protected java.util.Vector _fieldVector
| Constructor Detail |
|---|
public DelimitedStringParser()
public DelimitedStringParser(java.lang.String delimiters)
public DelimitedStringParser(java.lang.String registryName,
java.lang.String delimiters)
| Method Detail |
|---|
public PacketParser.Field[] parseFields(DevicePacket packet)
throws NotSupportedException,
java.text.ParseException
parseFields in class PacketParserNotSupportedException
java.text.ParseExceptionprotected java.lang.Number decimalValue(java.lang.String token)
protected abstract PacketParser.Field processToken(int nToken,
java.lang.String token)
throws java.text.ParseException
java.text.ParseException
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||