|
NIO2 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- The type of the directory entrypublic static interface DirectoryStream.Filter<T>
An interface that is implemented by objects that decide if a directory
entry should be accepted or filtered. A Filter
is passed as the
parameter to the newDirectoryStream
method when opening a directory to iterate over the
entries in the directory.
The DirectoryStreamFilters
class defines factory methods to
create filters for a number of common usages and also methods to combine
filters.
Method Summary | |
---|---|
boolean |
accept(T entry)
Decides if the given directory entry should be accept or filtered. |
Method Detail |
---|
boolean accept(T entry)
entry
- The directory entry to be tested
true
if the directory entry should be accepted
|
NIO2 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2007, 2011, Oracle and/or its affiliates. All rights reserved.