T
- 目录条目的类型
@FunctionalInterface public static interface DirectoryStream.Filter<T>
Filter
被作为参数传递给传递Files.newDirectoryStream(Path,DirectoryStream.Filter)
打开一个目录遍历该目录中的条目时方法。
boolean accept(T entry) throws IOException
entry
- 要测试的目录条目
true
如果目录条目应该被接受
IOException
- 如果发生I / O错误
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.