org.discotools.io.aprs.is
Class AprsIsParser

java.lang.Object
  extended by org.discotools.io.AbstractParser<T>
      extended by org.discotools.io.LinkedParser<AprsPacket>
          extended by org.discotools.io.aprs.is.AprsIsParser
All Implemented Interfaces:
org.discotools.io.Parser<AprsPacket>

public final class AprsIsParser
extends org.discotools.io.LinkedParser<AprsPacket>

APRS-IS parser implementation

Author:
kengu

Field Summary
 
Fields inherited from class org.discotools.io.LinkedParser
delegate
 
Constructor Summary
AprsIsParser()
          Default constructor.
AprsIsParser(AprsCache cache)
          External cache constructor.
 
Method Summary
 void addListener(AprsCacheListener listener)
           
static AprsIsEvent createEvent(AprsIsPacket packet, String comment)
           
static AprsIsRequest createRequest(AprsIsPacket packet, String user, String passcode, String filter)
           
static AprsIsResponse createResponse(AprsIsPacket packet, String user, boolean isVerified, String comment)
           
 AprsCache getCache()
           
protected  List<AprsPacket> internalParse(String payload)
           
 void removeListener(AprsCacheListener listener)
           
 
Methods inherited from class org.discotools.io.LinkedParser
parse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AprsIsParser

public AprsIsParser()
Default constructor.


AprsIsParser

public AprsIsParser(AprsCache cache)
External cache constructor.

Parameters:
cache - - AprsCache instance
Method Detail

getCache

public AprsCache getCache()

addListener

public void addListener(AprsCacheListener listener)

removeListener

public void removeListener(AprsCacheListener listener)

internalParse

protected List<AprsPacket> internalParse(String payload)
                                  throws org.discotools.io.ParseException
Overrides:
internalParse in class org.discotools.io.LinkedParser<AprsPacket>
Throws:
org.discotools.io.ParseException

createEvent

public static AprsIsEvent createEvent(AprsIsPacket packet,
                                      String comment)

createRequest

public static AprsIsRequest createRequest(AprsIsPacket packet,
                                          String user,
                                          String passcode,
                                          String filter)

createResponse

public static AprsIsResponse createResponse(AprsIsPacket packet,
                                            String user,
                                            boolean isVerified,
                                            String comment)


Copyright © 2012-2013 DISCO Foundation. All Rights Reserved.