package com.lucene;

import java.io.File;
import java.io.FileFilter;

public class TextFileFilter implements FileFilter {

	@Override
	public boolean accept(File pathname) {
		return pathname.getName().toLowerCase().endsWith(".xls");
	}
}
Handle only .xls Files in Data Path Directory
Handle only .xls Files in Data Path Directory
