All Downloads are FREE. Search and download functionalities are using the official Maven repository.

edu.stanford.nlp.util.FileProcessor Maven / Gradle / Ivy

package edu.stanford.nlp.util;

import java.io.File;

/**
 * Interface for a Visitor pattern for Files.
 * This interface is used by some existing code, but new code should
 * probably use FileArrayList or FileSequentialCollection, which fit
 * better with the Collections orientation of recent Java releases.
 *
 * @author Christopher Manning
 */
public interface FileProcessor {

  /**
   * Apply this predicate to a File.  This method can
   * assume the file is a file and not a directory.
   *
   * @see FilePathProcessor for traversing directories
   */
  public void processFile(File file);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy