///+INCOMPLETE //============================================================================== // FFilter.java //============================================================================== package tribble.search.disk; // System imports import java.io.File; import java.lang.String; // Local imports import tribble.search.DocumentI; import tribble.search.DocumentFilterI; /******************************************************************************* * File entry filter. * * @version $Revision: 1.3 $ $Date: 2001/06/18 03:03:40 $ * @since 2001-05-14 * @author * David R. Tribble * (david@tribble.com). *
* Copyright * ©2001 by David R. Tribble, all rights reserved.
* * @see FDirectory * @see FFile */ public class FFilter implements DocumentFilterI { // Identification /** Revision information. */ static final String REV = "@(#)tribble/search/disk/FFilter.java $Revision: 1.3 $ $Date: 2001/06/18 03:03:40 $\n"; // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // Public constants /** Series number. */ public static final int SERIES = 200; // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // Variables // (None) // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // Public constructors /*************************************************************************** * Default constructor. * * @since 1.1, 2001-05-17 */ public FFilter() { // Do nothing } // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // Public methods /*************************************************************************** * Accept or reject a directory file. * * @param ent * A directory file. * * @return * True if directory file ent is to be accepted, otherwise false if * it is to be rejected. * * @since 1.2, 2001-06-15 */ public boolean accept(DocumentI ent) //implements tribble.search.DocumentFilterI { FFile fent; File fname; // Extract the full file name of the entry fent = (FFile) ent; fname = fent.m_fname; ///+INCOMPLETE ///... return (true); } } // End FFilter.java