ps6
Class KillfileReader

java.lang.Object
  extended by ps6.KillfileReader

public class KillfileReader
extends Object

Abstraction to read and return filters based on kill files


Nested Class Summary
static class KillfileReader.KillfileException
          Indicates that a killfile was non-existant, malformed, etc.
 
Constructor Summary
KillfileReader()
           
 
Method Summary
static StreetSegmentFilter fromDir(File dbdir)
           
static StreetSegmentFilter fromFile(File killfile)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KillfileReader

public KillfileReader()
Method Detail

fromFile

public static StreetSegmentFilter fromFile(File killfile)
Returns:
a filter which passes segments not listed in the given kill file

fromDir

public static StreetSegmentFilter fromDir(File dbdir)
Returns:
a filter which passes segments not listed in $(dbdir)/*killfile.txt