org.discotools.io.aprs.tnc
Class TncParser

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

public final class TncParser
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
TncParser()
          Default constructor.
TncParser(AprsCache cache)
          External cache constructor.
 
Method Summary
 void addListener(AprsCacheListener listener)
           
static TncEvent createEvent(TncPacket packet, String comment)
           
static TncRequest createRequest(TncPacket packet, String user, String passcode, String filter)
           
static TncResponse createResponse(TncPacket 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

TncParser

public TncParser()
Default constructor.


TncParser

public TncParser(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 TncEvent createEvent(TncPacket packet,
                                   String comment)

createRequest

public static TncRequest createRequest(TncPacket packet,
                                       String user,
                                       String passcode,
                                       String filter)

createResponse

public static TncResponse createResponse(TncPacket packet,
                                         String user,
                                         boolean isVerified,
                                         String comment)


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