/external/apache-commons-io/src/main/java/org/apache/commons/io/filefilter/ |
D | DelegateFileFilter.java | 36 private final FileFilter fileFilter; field in DelegateFileFilter 45 public DelegateFileFilter(final FileFilter fileFilter) { in DelegateFileFilter() argument 46 Objects.requireNonNull(fileFilter, "filter"); in DelegateFileFilter() 47 this.fileFilter = fileFilter; in DelegateFileFilter() 59 this.fileFilter = null; in DelegateFileFilter() 70 if (fileFilter != null) { in accept() 71 return fileFilter.accept(file); in accept() 98 … final String delegate = fileFilter != null ? fileFilter.toString() : filenameFilter.toString(); in toString()
|
D | OrFileFilter.java | 111 return fileFilters.stream().anyMatch(fileFilter -> fileFilter.accept(file)); in accept() 119 return fileFilters.stream().anyMatch(fileFilter -> fileFilter.accept(file, name)); in accept() 127 …return toDefaultFileVisitResult(fileFilters.stream().anyMatch(fileFilter -> fileFilter.accept(file… in accept() 134 public void addFileFilter(final IOFileFilter fileFilter) { in addFileFilter() argument 135 this.fileFilters.add(Objects.requireNonNull(fileFilter, "fileFilter")); in addFileFilter() 160 public boolean removeFileFilter(final IOFileFilter fileFilter) { in removeFileFilter() argument 161 return this.fileFilters.remove(fileFilter); in removeFileFilter()
|
D | AndFileFilter.java | 116 return !isEmpty() && fileFilters.stream().allMatch(fileFilter -> fileFilter.accept(file)); in accept() 124 … return !isEmpty() && fileFilters.stream().allMatch(fileFilter -> fileFilter.accept(file, name)); in accept() 134 …: toDefaultFileVisitResult(fileFilters.stream().allMatch(fileFilter -> fileFilter.accept(file, att… in accept() 141 public void addFileFilter(final IOFileFilter fileFilter) { in addFileFilter() argument 142 this.fileFilters.add(Objects.requireNonNull(fileFilter, "fileFilter")); in addFileFilter()
|
D | IOFileFilter.java | 84 default IOFileFilter and(final IOFileFilter fileFilter) { in and() argument 85 return new AndFileFilter(this, fileFilter); in and() 105 default IOFileFilter or(final IOFileFilter fileFilter) { in or() argument 106 return new OrFileFilter(this, fileFilter); in or()
|
D | TrueFileFilter.java | 92 public IOFileFilter and(final IOFileFilter fileFilter) { in and() argument 94 return fileFilter; in and() 103 public IOFileFilter or(final IOFileFilter fileFilter) { in or() argument
|
D | FalseFileFilter.java | 93 public IOFileFilter and(final IOFileFilter fileFilter) { in and() argument 104 public IOFileFilter or(final IOFileFilter fileFilter) { in or() argument 106 return fileFilter; in or()
|
/external/apache-commons-io/src/main/java/org/apache/commons/io/monitor/ |
D | FileAlterationObserver.java | 129 private final FileFilter fileFilter; field in FileAlterationObserver 147 public FileAlterationObserver(final File directory, final FileFilter fileFilter) { in FileAlterationObserver() argument 148 this(directory, fileFilter, null); in FileAlterationObserver() 159 …public FileAlterationObserver(final File directory, final FileFilter fileFilter, final IOCase ioCa… in FileAlterationObserver() argument 160 this(new FileEntry(directory), fileFilter, ioCase); in FileAlterationObserver() 170 …protected FileAlterationObserver(final FileEntry rootEntry, final FileFilter fileFilter, final IOC… in FileAlterationObserver() argument 174 this.fileFilter = fileFilter; in FileAlterationObserver() 202 public FileAlterationObserver(final String directoryName, final FileFilter fileFilter) { in FileAlterationObserver() argument 203 this(new File(directoryName), fileFilter); in FileAlterationObserver() 213 …public FileAlterationObserver(final String directoryName, final FileFilter fileFilter, final IOCas… in FileAlterationObserver() argument [all …]
|
/external/apache-commons-io/src/test/java/org/apache/commons/io/filefilter/ |
D | ConditionalFileFilterAbstractTest.java | 78 final ConditionalFileFilter fileFilter = this.getConditionalFileFilter(); in testAdd() local 84 assertEquals(i, fileFilter.getFileFilters().size(), "file filters count: "); in testAdd() 85 fileFilter.addFileFilter(filters.get(i)); in testAdd() 86 assertEquals(i + 1, fileFilter.getFileFilters().size(), "file filters count: "); in testAdd() 88 fileFilter.getFileFilters().forEach(filter -> { in testAdd() 91 assertEquals(filters.size(), fileFilter.getFileFilters().size(), "file filters count"); in testAdd() 164 final ConditionalFileFilter fileFilter = this.getConditionalFileFilter(); in testNoFilters() local 166 assertFileFiltering(1, (IOFileFilter) fileFilter, file, false); in testNoFilters() 167 assertFilenameFiltering(1, (IOFileFilter) fileFilter, file, false); in testNoFilters() 173 final ConditionalFileFilter fileFilter = this.getConditionalFileFilter(); in testRemove() local [all …]
|
/external/apache-commons-io/src/main/java/org/apache/commons/io/file/ |
D | AccumulatorPathVisitor.java | 80 public static AccumulatorPathVisitor withBigIntegerCounters(final PathFilter fileFilter, in withBigIntegerCounters() argument 82 return new AccumulatorPathVisitor(Counters.bigIntegerPathCounters(), fileFilter, dirFilter); in withBigIntegerCounters() 102 …public static AccumulatorPathVisitor withLongCounters(final PathFilter fileFilter, final PathFilte… in withLongCounters() argument 103 return new AccumulatorPathVisitor(Counters.longPathCounters(), fileFilter, dirFilter); in withLongCounters() 136 …public AccumulatorPathVisitor(final PathCounters pathCounter, final PathFilter fileFilter, final P… in AccumulatorPathVisitor() argument 137 super(pathCounter, fileFilter, dirFilter); in AccumulatorPathVisitor() 149 …public AccumulatorPathVisitor(final PathCounters pathCounter, final PathFilter fileFilter, final P… in AccumulatorPathVisitor() argument 151 super(pathCounter, fileFilter, dirFilter, visitFileFailed); in AccumulatorPathVisitor()
|
D | CountingPathVisitor.java | 70 private final PathFilter fileFilter; field in CountingPathVisitor 90 …public CountingPathVisitor(final PathCounters pathCounter, final PathFilter fileFilter, final Path… in CountingPathVisitor() argument 92 this.fileFilter = Objects.requireNonNull(fileFilter, "fileFilter"); in CountingPathVisitor() 105 …public CountingPathVisitor(final PathCounters pathCounter, final PathFilter fileFilter, final Path… in CountingPathVisitor() argument 109 this.fileFilter = Objects.requireNonNull(fileFilter, "fileFilter"); in CountingPathVisitor() 181 if (Files.exists(file) && fileFilter.accept(file, attributes) == FileVisitResult.CONTINUE) { in visitFile()
|
D | CopyDirectoryVisitor.java | 73 …public CopyDirectoryVisitor(final PathCounters pathCounter, final PathFilter fileFilter, final Pat… in CopyDirectoryVisitor() argument 75 super(pathCounter, fileFilter, dirFilter); in CopyDirectoryVisitor()
|
/external/apache-commons-io/src/main/java/org/apache/commons/io/ |
D | DirectoryWalker.java | 365 …protected DirectoryWalker(IOFileFilter directoryFilter, IOFileFilter fileFilter, final int depthLi… in DirectoryWalker() argument 366 if (directoryFilter == null && fileFilter == null) { in DirectoryWalker() 370 fileFilter = fileFilter != null ? fileFilter : TrueFileFilter.TRUE; in DirectoryWalker() 372 fileFilter = FileFilterUtils.makeFileOnly(fileFilter); in DirectoryWalker() 373 this.filter = directoryFilter.or(fileFilter); in DirectoryWalker()
|
D | FileUtils.java | 682 … copyDirectory(final File srcDir, final File destDir, final FileFilter fileFilter, final boolean p… in copyDirectory() argument 693 final File[] srcFiles = listFiles(srcDir, fileFilter); in copyDirectory() 701 …doCopyDirectory(srcDir, destDir, fileFilter, exclusionList, preserveFileDate, preserveFileDate ? a… in copyDirectory() 1302 …oCopyDirectory(final File srcDir, final File destDir, final FileFilter fileFilter, final List<Stri… in doCopyDirectory() argument 1305 final File[] srcFiles = listFiles(srcDir, fileFilter); in doCopyDirectory() 1313 … doCopyDirectory(srcFile, dstFile, fileFilter, exclusionList, preserveDirDate, copyOptions); in doCopyDirectory() 1981 …public static Iterator<File> iterateFiles(final File directory, final IOFileFilter fileFilter, fin… in iterateFiles() argument 1982 return listFiles(directory, fileFilter, dirFilter).iterator(); in iterateFiles() 2026 …tor<File> iterateFilesAndDirs(final File directory, final IOFileFilter fileFilter, final IOFileFil… in iterateFilesAndDirs() argument 2027 return listFilesAndDirs(directory, fileFilter, dirFilter).iterator(); in iterateFilesAndDirs() [all …]
|
/external/apache-commons-io/src/test/java/org/apache/commons/io/ |
D | FileUtilsListFilesTest.java | 115 IOFileFilter fileFilter; in testListFiles() local 119 fileFilter = FileFilterUtils.trueFileFilter(); in testListFiles() 120 files = FileUtils.listFiles(temporaryFolder, fileFilter, null); in testListFiles() 127 fileFilter = FileFilterUtils.trueFileFilter(); in testListFiles() 129 files = FileUtils.listFiles(temporaryFolder, fileFilter, dirFilter); in testListFiles() 136 fileFilter = FileFilterUtils.trueFileFilter(); in testListFiles() 138 files = FileUtils.listFiles(temporaryFolder, fileFilter, dirFilter); in testListFiles() 145 fileFilter = FileFilterUtils.trueFileFilter(); in testListFiles() 148 files = FileUtils.listFiles(temporaryFolder, fileFilter, dirFilter); in testListFiles()
|
D | DirectoryWalkerTestCaseJava4.java | 129 …protected TestFileFinder(final IOFileFilter dirFilter, final IOFileFilter fileFilter, final int de… in TestFileFinder() argument 130 super(dirFilter, fileFilter, depthLimit); in TestFileFinder()
|
D | DirectoryWalkerTest.java | 118 …protected TestFileFinder(final IOFileFilter dirFilter, final IOFileFilter fileFilter, final int de… in TestFileFinder() argument 119 super(dirFilter, fileFilter, depthLimit); in TestFileFinder()
|
D | FileUtilsTest.java | 282 private void iterateFilesAndDirs(final File dir, final IOFileFilter fileFilter, 286 iterator = FileUtils.iterateFilesAndDirs(dir, fileFilter, dirFilter);
|
/external/apache-commons-io/src/test/java/org/apache/commons/io/monitor/ |
D | AbstractMonitorTest.java | 100 protected void createObserver(final File file, final FileFilter fileFilter) { in createObserver() argument 101 observer = new FileAlterationObserver(file, fileFilter); in createObserver() 115 final IOFileFilter fileFilter = FileFilterUtils.and(files, javaSuffix); in setUp() local 121 final IOFileFilter filter = FileFilterUtils.or(dirFilter, fileFilter); in setUp()
|
/external/cldr/tools/cldr-code/src/main/java/org/unicode/cldr/tool/ |
D | CompareLocales.java | 34 fileFilter(new Params().setHelp("filter paths").setMatch(".*")), enumConstant 72 …Matcher fileMatcher = !MyOptions.fileFilter.option.doesOccur() ? null : Pattern.compile(MyOptions.… in main()
|
D | ChartDelta.java | 79 …fileFilter(new Params().setHelp("filter files by dir/locale, eg: ^main/en$ or .*/en").setMatch(".*… enumConstant 107 private final Matcher fileFilter; field in ChartDelta 127 …Matcher fileFilter = !MyOptions.fileFilter.option.doesOccur() ? null : PatternCache.get(MyOptions.… in main() local 129 if (MyOptions.fileFilter.option.doesOccur()) { in main() 135 …fileFilter = PatternCache.get("^(main|annotations)/(" + Joiner.on("|").join(locales) + ")$").match… in main() 148 ChartDelta temp = new ChartDelta(fileFilter, coverage, dirName, verbose, highLevelOnly); in main() 159 …private ChartDelta(Matcher fileFilter, Level coverage, String dirName, boolean verbose, boolean hi… in ChartDelta() argument 160 this.fileFilter = fileFilter; in ChartDelta() 382 if (fileFilter != null && !fileFilter.reset(nameAndLocale).find()) { in writeLdml() 914 if (fileFilter != null && !fileFilter.reset(dir + "/" + base).find()) { in writeNonLdmlPlain()
|
D | ListGrammarData.java | 42 fileFilter(new Params().setHelp("filter files by locale").setMatch(".*").setDefault(".*")), enumConstant 70 Matcher fileFilter = Pattern.compile(MyOptions.fileFilter.option.getValue()).matcher(""); in main() local 86 if (!fileFilter.reset(localeRaw).matches()) { in main()
|
D | GenerateDerivedAnnotations.java | 67 …fileFilter(new Params().setHelp("filter files by dir/locale, eg: ^main/en$ or .*/en").setMatch(".*… enumConstant 98 Matcher localeMatcher = Pattern.compile(MyOptions.fileFilter.option.getValue()).matcher(""); in main()
|
/external/cldr/tools/cldr-code/src/main/java/org/unicode/cldr/icu/ |
D | ExtractICUData.java | 82 Matcher fileFilter = PatternCache.get(".*").matcher(""); in generateTransliterators() local 119 if (!fileFilter.reset(fileName).matches()) continue; in generateTransliterators()
|