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.