org.apache.lenya.lucene.index
Class AbstractIndexer.DefaultIndexFilter

java.lang.Object
  extended by org.apache.lenya.lucene.index.AbstractIndexer.DefaultIndexFilter
All Implemented Interfaces:
java.io.FileFilter
Enclosing class:
AbstractIndexer

public static class AbstractIndexer.DefaultIndexFilter
extends java.lang.Object
implements java.io.FileFilter

FileFilter used to obtain the files to index.


Field Summary
protected  java.lang.String[] indexableExtensions
           
 
Constructor Summary
AbstractIndexer.DefaultIndexFilter()
          Default indexable extensions: html, htm, txt
AbstractIndexer.DefaultIndexFilter(java.lang.String[] indexableExtensions)
           
 
Method Summary
 boolean accept(java.io.File file)
          Tests whether or not the specified abstract pathname should be included in a pathname list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

indexableExtensions

protected java.lang.String[] indexableExtensions
Constructor Detail

AbstractIndexer.DefaultIndexFilter

public AbstractIndexer.DefaultIndexFilter()
Default indexable extensions: html, htm, txt


AbstractIndexer.DefaultIndexFilter

public AbstractIndexer.DefaultIndexFilter(java.lang.String[] indexableExtensions)
Method Detail

accept

public boolean accept(java.io.File file)
Tests whether or not the specified abstract pathname should be included in a pathname list.

Specified by:
accept in interface java.io.FileFilter
Parameters:
pathname - The abstract pathname to be tested
Returns:
true if and only if pathname should be included


Copyright © 1999-2005 Apache Software Foundation. All Rights Reserved.