class LocalDirectoryAttributeStream extends java.lang.Object implements DirectoryStream<PathAttributesPair>, java.util.Iterator<PathAttributesPair>
DirectoryStream
for local directories.DirectoryStream.Filter
Modifier and Type | Field and Description |
---|---|
private LocalFiles |
localFiles
LocalFiles to retrieve the attributes of a file
|
private LocalDirectoryStream |
stream
The LocalDirectoryStream to retrieve the files
|
Constructor and Description |
---|
LocalDirectoryAttributeStream(LocalFiles localFiles,
LocalDirectoryStream stream) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
boolean |
hasNext() |
java.util.Iterator<PathAttributesPair> |
iterator() |
PathAttributesPair |
next() |
void |
remove() |
private final LocalFiles localFiles
private final LocalDirectoryStream stream
LocalDirectoryAttributeStream(LocalFiles localFiles, LocalDirectoryStream stream)
public java.util.Iterator<PathAttributesPair> iterator()
iterator
in interface java.lang.Iterable<PathAttributesPair>
iterator
in interface DirectoryStream<PathAttributesPair>
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in interface DirectoryStream<PathAttributesPair>
java.io.IOException
public boolean hasNext()
hasNext
in interface java.util.Iterator<PathAttributesPair>
public PathAttributesPair next()
next
in interface java.util.Iterator<PathAttributesPair>
public void remove()
remove
in interface java.util.Iterator<PathAttributesPair>