/** * Creates a {@code FileSequentialCollection} from the passed in * {@code Collection}. The constructor iterates through the * collection. For each element, if it is a {@code File}, then the * {@code File} is added to the collection, if it is a * {@code String}, then a {@code File} corresponding to this * {@code String} as a file path is added to the collection, and * if the argument is of some other type, an * {@code IllegalArgumentException} is thrown. For the files * thus specified, they are included in the collection only if they * match an extension filter as specified by the other arguments. * * @param c Collection of files or directories as Files or Strings * @param suffix suffix (normally "File extension") of files to load * @param recursively true means descend into subdirectories as well */ public FileSequentialCollection(Collection<?> c, String suffix, boolean recursively) { this(c, new ExtensionFileFilter(suffix, recursively), false); }
/** * Load trees from given directory. * * @param path file or directory to load from * @param suffix suffix of files to load * @param recursively descend into subdirectories as well */ public void loadPath(File path, String suffix, boolean recursively) { loadPath(path, new ExtensionFileFilter(suffix, recursively)); }
/** * Apply a method to the files under a given directory and * perhaps its subdirectories. * * @param pathStr file or directory to load from as a String * @param suffix suffix (normally "File extension") of files to load * @param recursively true means descend into subdirectories as well * @param processor The <code>FileProcessor</code> to apply to each * <code>File</code> */ public static void processPath(String pathStr, String suffix, boolean recursively, FileProcessor processor) { processPath(new File(pathStr), new ExtensionFileFilter(suffix, recursively), processor); }
/** * Apply a method to the files under a given directory and * perhaps its subdirectories. * * @param path file or directory to load from * @param suffix suffix (normally "File extension") of files to load * @param recursively true means descend into subdirectories as well * @param processor The <code>FileProcessor</code> to apply to each * <code>File</code> */ public static void processPath(File path, String suffix, boolean recursively, FileProcessor processor) { processPath(path, new ExtensionFileFilter(suffix, recursively), processor); }
/** * Load trees from given directory. * * @param pathName File or directory name * @param suffix Extension of files to load: If {@code pathName} * is a directory, then, if this is * non-{@code null}, all and only files ending in "." followed * by this extension will be loaded; if it is {@code null}, * all files in directories will be loaded. If {@code pathName} * is not a directory, this parameter is ignored. * @param recursively descend into subdirectories as well */ public void loadPath(String pathName, String suffix, boolean recursively) { loadPath(new File(pathName), new ExtensionFileFilter(suffix, recursively)); }
/** * Creates a {@code FileSequentialCollection} from the passed in * {@code Collection}. The constructor iterates through the * collection. For each element, if it is a {@code File}, then the * {@code File} is added to the collection, if it is a * {@code String}, then a {@code File} corresponding to this * {@code String} as a file path is added to the collection, and * if the argument is of some other type, an * {@code IllegalArgumentException} is thrown. For the files * thus specified, they are included in the collection only if they * match an extension filter as specified by the other arguments. * * @param c Collection of files or directories as Files or Strings * @param suffix suffix (normally "File extension") of files to load * @param recursively true means descend into subdirectories as well */ public FileSequentialCollection(Collection<?> c, String suffix, boolean recursively) { this(c, new ExtensionFileFilter(suffix, recursively), false); }
/** * Creates a <code>FileSequentialCollection</code> from the passed in * <code>Collection</code>. The constructor iterates through the * collection. For each element, if it is a <code>File</code>, then the * <code>File</code> is added to the collection, if it is a * <code>String</code>, then a <code>File</code> corresponding to this * <code>String</code> as a file path is added to the collection, and * if the argument is of some other type, an * <code>IllegalArgumentException</code> is thrown. For the files * thus specified, they are included in the collection only if they * match an extension filter as specified by the other arguments. * * @param c Collection of files or directories as Files or Strings * @param suffix suffix (normally "File extension") of files to load * @param recursively true means descend into subdirectories as well */ public FileSequentialCollection(Collection<?> c, String suffix, boolean recursively) { this(c, new ExtensionFileFilter(suffix, recursively), false); }
/** * Creates a <code>FileSequentialCollection</code> from the passed in * <code>Collection</code>. The constructor iterates through the * collection. For each element, if it is a <code>File</code>, then the * <code>File</code> is added to the collection, if it is a * <code>String</code>, then a <code>File</code> corresponding to this * <code>String</code> as a file path is added to the collection, and * if the argument is of some other type, an * <code>IllegalArgumentException</code> is thrown. For the files * thus specified, they are included in the collection only if they * match an extension filter as specified by the other arguments. * * @param c Collection of files or directories as Files or Strings * @param suffix suffix (normally "File extension") of files to load * @param recursively true means descend into subdirectories as well */ public FileSequentialCollection(Collection<?> c, String suffix, boolean recursively) { this(c, new ExtensionFileFilter(suffix, recursively), false); }
/** * Apply a method to the files under a given directory and * perhaps its subdirectories. * * @param path file or directory to load from * @param suffix suffix (normally "File extension") of files to load * @param recursively true means descend into subdirectories as well * @param processor The <code>FileProcessor</code> to apply to each * <code>File</code> */ public static void processPath(File path, String suffix, boolean recursively, FileProcessor processor) { processPath(path, new ExtensionFileFilter(suffix, recursively), processor); }
/** * Load trees from given directory. * * @param path file or directory to load from * @param suffix suffix of files to load * @param recursively descend into subdirectories as well */ public void loadPath(File path, String suffix, boolean recursively) { loadPath(path, new ExtensionFileFilter(suffix, recursively)); }
/** * Load trees from given directory. * * @param path file or directory to load from * @param suffix suffix of files to load * @param recursively descend into subdirectories as well */ public void loadPath(File path, String suffix, boolean recursively) { loadPath(path, new ExtensionFileFilter(suffix, recursively)); }
/** * Apply a method to the files under a given directory and * perhaps its subdirectories. * * @param pathStr file or directory to load from as a String * @param suffix suffix (normally "File extension") of files to load * @param recursively true means descend into subdirectories as well * @param processor The <code>FileProcessor</code> to apply to each * <code>File</code> */ public static void processPath(String pathStr, String suffix, boolean recursively, FileProcessor processor) { processPath(new File(pathStr), new ExtensionFileFilter(suffix, recursively), processor); }
/** * Load trees from given directory. * * @param path file or directory to load from * @param suffix suffix of files to load * @param recursively descend into subdirectories as well */ public void loadPath(File path, String suffix, boolean recursively) { loadPath(path, new ExtensionFileFilter(suffix, recursively)); }
/** * Load trees from given directory. * * @param path file or directory to load from * @param suffix suffix of files to load * @param recursively descend into subdirectories as well */ public void loadPath(File path, String suffix, boolean recursively) { loadPath(path, new ExtensionFileFilter(suffix, recursively)); }
/** * Apply a method to the files under a given directory and * perhaps its subdirectories. * * @param pathStr file or directory to load from as a String * @param suffix suffix (normally "File extension") of files to load * @param recursively true means descend into subdirectories as well * @param processor The <code>FileProcessor</code> to apply to each * <code>File</code> */ public static void processPath(String pathStr, String suffix, boolean recursively, FileProcessor processor) { processPath(new File(pathStr), new ExtensionFileFilter(suffix, recursively), processor); }
/** * Apply a method to the files under a given directory and * perhaps its subdirectories. * * @param pathStr file or directory to load from as a String * @param suffix suffix (normally "File extension") of files to load * @param recursively true means descend into subdirectories as well * @param processor The <code>FileProcessor</code> to apply to each * <code>File</code> */ public static void processPath(String pathStr, String suffix, boolean recursively, FileProcessor processor) { processPath(new File(pathStr), new ExtensionFileFilter(suffix, recursively), processor); }
/** * Apply a method to the files under a given directory and * perhaps its subdirectories. * * @param pathStr file or directory to load from as a String * @param suffix suffix (normally "File extension") of files to load * @param recursively true means descend into subdirectories as well * @param processor The <code>FileProcessor</code> to apply to each * <code>File</code> */ public static void processPath(String pathStr, String suffix, boolean recursively, FileProcessor processor) { processPath(new File(pathStr), new ExtensionFileFilter(suffix, recursively), processor); }
/** * Apply a method to the files under a given directory and * perhaps its subdirectories. * * @param path file or directory to load from * @param suffix suffix (normally "File extension") of files to load * @param recursively true means descend into subdirectories as well * @param processor The <code>FileProcessor</code> to apply to each * <code>File</code> */ public static void processPath(File path, String suffix, boolean recursively, FileProcessor processor) { processPath(path, new ExtensionFileFilter(suffix, recursively), processor); }
/** * Apply a method to the files under a given directory and * perhaps its subdirectories. * * @param path file or directory to load from * @param suffix suffix (normally "File extension") of files to load * @param recursively true means descend into subdirectories as well * @param processor The <code>FileProcessor</code> to apply to each * <code>File</code> */ public static void processPath(File path, String suffix, boolean recursively, FileProcessor processor) { processPath(path, new ExtensionFileFilter(suffix, recursively), processor); }
/** * Apply a method to the files under a given directory and * perhaps its subdirectories. * * @param path file or directory to load from * @param suffix suffix (normally "File extension") of files to load * @param recursively true means descend into subdirectories as well * @param processor The <code>FileProcessor</code> to apply to each * <code>File</code> */ public static void processPath(File path, String suffix, boolean recursively, FileProcessor processor) { processPath(path, new ExtensionFileFilter(suffix, recursively), processor); }