sdr 0.7

net.cscott.sdr.calls.transform
Class CallFileLoader

java.lang.Object
  extended by net.cscott.sdr.calls.transform.CallFileLoader

public abstract class CallFileLoader
extends Object

This class contains the code to parse and load a call list.


Constructor Summary
CallFileLoader()
           
 
Method Summary
static void load(URL file, Map<String,Call> db)
          Parse a call list and add its calls to the given map.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CallFileLoader

public CallFileLoader()
Method Detail

load

public static void load(URL file,
                        Map<String,Call> db)
Parse a call list and add its calls to the given map.

Tests:
Loading call list resources from the path:
js> function u(name) {
  >   c=java.lang.Class.forName("net.cscott.sdr.calls.transform.CallFileLoader")
  >   p="net/cscott/sdr/calls/lists/"+name+".calls"
  >   return c.getClassLoader().getResource(p)
  > }
js> m = new java.util.LinkedHashMap()
{}
js> CallFileLoader.load(u('basic'), m)
js> CallFileLoader.load(u('mainstream'), m)
js> CallFileLoader.load(u('plus'), m)
js> CallFileLoader.load(u('a1'), m)
js> CallFileLoader.load(u('a2'), m)

sdr 0.7

Copyright © 2006-2009 C. Scott Ananian