IndexFileNameFilter (Lucene 2.4.1 API)
Keywords: org.apache.lucene.index.IndexFileNameFilter class

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.lucene.index
Class IndexFileNameFilter

    java.lang.Object
      org.apache.lucene.index.IndexFileNameFilter

All Implemented Interfaces:
  FilenameFilter

    public class IndexFileNameFilter

extends Object
implements FilenameFilter

Filename filter that accept filenames and extensions only created by Lucene.

Version:
  $rcs = ' $Id: Exp $ ' ;

Constructor Summary
`IndexFileNameFilter()`

Method Summary
`boolean` | `accept(File dir, String name)`
`static IndexFileNameFilter` | `getFilter()`
`boolean` | `isCFSFile(String name)` Returns true if this is a file that would be contained in a CFS file.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### IndexFileNameFilter

    public IndexFileNameFilter()

Method Detail

### accept

    public boolean accept(File dir,
                          String name)

  Specified by:
    `accept` in interface `FilenameFilter`

### isCFSFile

    public boolean isCFSFile(String name)

  Returns true if this is a file that would be contained in a CFS file. This function should only be called on files that pass the above "accept" (ie, are already known to be a Lucene index file).

### getFilter

    public static IndexFileNameFilter getFilter()

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2000-2009 Apache Software Foundation. All Rights Reserved.