public interface DirectoryDataView<T> extends FileTreeDataView<T>, DirectoryView
| Modifier and Type | Method and Description |
|---|---|
FileTreeDataViews.Entry<T> |
getEntry()
Returns the cache entry associated with the directory returned by
DirectoryView.getTypedPath() }. |
java.util.List<TypedPath> |
list(int maxDepth,
Filter<? super TypedPath> filter)
List all of the files for the
path, returning only those files that are accepted by the
provided filter. |
java.util.List<TypedPath> |
list(java.nio.file.Path path,
int maxDepth,
Filter<? super TypedPath> filter)
List all of the files for the
path, returning only those files that are accepted by the
provided filter. |
java.util.List<FileTreeDataViews.Entry<T>> |
listEntries(int maxDepth,
Filter<? super FileTreeDataViews.Entry<T>> filter)
List all of the files for the
path</code> that are accepted by the <code>filter. |
java.util.List<FileTreeDataViews.Entry<T>> |
listEntries(java.nio.file.Path path,
int maxDepth,
Filter<? super FileTreeDataViews.Entry<T>> filter)
List all of the files for the
path</code> that are accepted by the <code>filter. |
getMaxDepth, getPath, getTypedPathFileTreeDataViews.Entry<T> getEntry()
DirectoryView.getTypedPath() }.java.util.List<FileTreeDataViews.Entry<T>> listEntries(int maxDepth, Filter<? super FileTreeDataViews.Entry<T>> filter) throws java.io.IOException
path</code> that are accepted by the <code>filter.maxDepth - the maximum depth of subdirectories to returnfilter - include only paths accepted by thisjava.io.IOException - if the path cannot be listed.java.util.List<TypedPath> list(int maxDepth, Filter<? super TypedPath> filter) throws java.io.IOException
path, returning only those files that are accepted by the
provided filter.list in interface DirectoryViewmaxDepth - the maximum depth of subdirectories to queryfilter - include only paths accepted by the filterPath instances accepted by the filter.java.io.IOException - if the path cannot be listed.java.util.List<FileTreeDataViews.Entry<T>> listEntries(java.nio.file.Path path, int maxDepth, Filter<? super FileTreeDataViews.Entry<T>> filter) throws java.io.IOException
path</code> that are accepted by the <code>filter.listEntries in interface FileTreeDataView<T>path - the path to list. If this is a file, returns a list containing the Entry for the
file or an empty list if the file is not monitored by the path.maxDepth - the maximum depth of subdirectories to returnfilter - include only paths accepted by thisjava.io.IOException - if the path cannot be listed.java.util.List<TypedPath> list(java.nio.file.Path path, int maxDepth, Filter<? super TypedPath> filter) throws java.io.IOException
path, returning only those files that are accepted by the
provided filter.list in interface FileTreeDataView<T>list in interface FileTreeViewpath - the root path to listmaxDepth - the maximum depth of subdirectories to queryfilter - include only paths accepted by the filterPath instances accepted by the filter.java.io.IOException - if the path cannot be listed.