net.nutch.net
Class PrefixURLFilter

java.lang.Object
  extended bynet.nutch.net.PrefixURLFilter
All Implemented Interfaces:
URLFilter

public class PrefixURLFilter
extends Object
implements URLFilter

Filters URLs based on a file of URL prefixes. The config file is named by the Nutch configuration property "urlfilter.prefix.file".

The format of this file is one URL per line.


Constructor Summary
PrefixURLFilter()
           
PrefixURLFilter(String filename)
           
 
Method Summary
 String filter(String url)
           
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrefixURLFilter

public PrefixURLFilter()
                throws IOException

PrefixURLFilter

public PrefixURLFilter(String filename)
                throws IOException
Method Detail

filter

public String filter(String url)
Specified by:
filter in interface URLFilter

main

public static void main(String[] args)
                 throws IOException
Throws:
IOException


Copyright © 2004 The Nutch Organization.