/** * Construct a FileListIterator with the file containing the list of files, which * contains one filename per line. * * The instances constructed from the filelist are returned in the same order * as listed */ public FileListIterator(File filelist, FileFilter fileFilter, Pattern targetPattern, boolean removeCommonPrefix) throws FileNotFoundException, IOException { this.fileFilter = fileFilter; this.fileArray = new ArrayList(); this.targetPattern = targetPattern; List filenames = readFileNames (filelist); File[] fa = stringList2FileArray (filenames, null); fillFileArrayAssignCommonPrefixIndexAndSubIterator(fa, removeCommonPrefix); }
/** * Construct a FileListIterator with the file containing the list of files, which * contains one filename per line. * * The instances constructed from the filelist are returned in the same order * as listed */ public FileListIterator(File filelist, FileFilter fileFilter, Pattern targetPattern, boolean removeCommonPrefix) throws FileNotFoundException, IOException { this.fileFilter = fileFilter; this.fileArray = new ArrayList(); this.targetPattern = targetPattern; List filenames = readFileNames (filelist); File[] fa = stringList2FileArray (filenames, null); fillFileArrayAssignCommonPrefixIndexAndSubIterator(fa, removeCommonPrefix); }
/** * Construct a FileListIterator with the file containing the list of files, which * contains one filename per line. * * The instances constructed from the filelist are returned in the same order * as listed */ public FileListIterator(File filelist, FileFilter fileFilter, Pattern targetPattern, boolean removeCommonPrefix) throws FileNotFoundException, IOException { this.fileFilter = fileFilter; this.fileArray = new ArrayList(); this.targetPattern = targetPattern; List filenames = readFileNames (filelist); File[] fa = stringList2FileArray (filenames, null); fillFileArrayAssignCommonPrefixIndexAndSubIterator(fa, removeCommonPrefix); }
/** * Construct a FileListIterator with the file containing the list of files * of RELATIVE pathnames, one filename per line. * <p> * The instances constructed from the filelist are returned in the same order * as listed * @param filelist List of relative file names. * @param baseDirectory Base directory for relative file names. * */ public FileListIterator(File filelist, File baseDirectory, FileFilter fileFilter, Pattern targetPattern, boolean removeCommonPrefix) throws FileNotFoundException, IOException { this.fileFilter = fileFilter; this.fileArray = new ArrayList(); this.targetPattern = targetPattern; List filenames = readFileNames (filelist); File[] fa = stringList2FileArray (filenames, baseDirectory); fillFileArrayAssignCommonPrefixIndexAndSubIterator(fa, removeCommonPrefix); }
/** * Construct a FileListIterator with the file containing the list of files * of RELATIVE pathnames, one filename per line. * <p> * The instances constructed from the filelist are returned in the same order * as listed * @param filelist List of relative file names. * @param baseDirectory Base directory for relative file names. * */ public FileListIterator(File filelist, File baseDirectory, FileFilter fileFilter, Pattern targetPattern, boolean removeCommonPrefix) throws FileNotFoundException, IOException { this.fileFilter = fileFilter; this.fileArray = new ArrayList(); this.targetPattern = targetPattern; List filenames = readFileNames (filelist); File[] fa = stringList2FileArray (filenames, baseDirectory); fillFileArrayAssignCommonPrefixIndexAndSubIterator(fa, removeCommonPrefix); }
/** * Construct a FileListIterator with the file containing the list of files * of RELATIVE pathnames, one filename per line. * <p> * The instances constructed from the filelist are returned in the same order * as listed * @param filelist List of relative file names. * @param baseDirectory Base directory for relative file names. * */ public FileListIterator(File filelist, File baseDirectory, FileFilter fileFilter, Pattern targetPattern, boolean removeCommonPrefix) throws FileNotFoundException, IOException { this.fileFilter = fileFilter; this.fileArray = new ArrayList(); this.targetPattern = targetPattern; List filenames = readFileNames (filelist); File[] fa = stringList2FileArray (filenames, baseDirectory); fillFileArrayAssignCommonPrefixIndexAndSubIterator(fa, removeCommonPrefix); }