Package org.apache.sshd.sftp.client.fs
Class SftpPathIterator
- java.lang.Object
-
- org.apache.sshd.sftp.client.fs.SftpPathIterator
-
-
Field Summary
Fields Modifier and Type Field Description protected SftpPathcurEntryprotected booleandotdotIgnoredprotected booleandotIgnoredprotected Iterator<? extends SftpClient.DirEntry>it
-
Constructor Summary
Constructors Constructor Description SftpPathIterator(SftpPath path, Iterable<? extends SftpClient.DirEntry> iter)SftpPathIterator(SftpPath path, Iterable<? extends SftpClient.DirEntry> iter, DirectoryStream.Filter<? super Path> filter)SftpPathIterator(SftpPath path, Iterator<? extends SftpClient.DirEntry> iter)SftpPathIterator(SftpPath path, Iterator<? extends SftpClient.DirEntry> iter, DirectoryStream.Filter<? super Path> filter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()DirectoryStream.Filter<? super Path>getFilter()SftpPathgetRootPath()booleanhasNext()Pathnext()protected SftpPathnextEntry(SftpPath root, DirectoryStream.Filter<? super Path> selector)voidremove()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
-
-
-
Field Detail
-
it
protected Iterator<? extends SftpClient.DirEntry> it
-
dotIgnored
protected boolean dotIgnored
-
dotdotIgnored
protected boolean dotdotIgnored
-
curEntry
protected SftpPath curEntry
-
-
Constructor Detail
-
SftpPathIterator
public SftpPathIterator(SftpPath path, Iterable<? extends SftpClient.DirEntry> iter)
-
SftpPathIterator
public SftpPathIterator(SftpPath path, Iterable<? extends SftpClient.DirEntry> iter, DirectoryStream.Filter<? super Path> filter)
-
SftpPathIterator
public SftpPathIterator(SftpPath path, Iterator<? extends SftpClient.DirEntry> iter)
-
SftpPathIterator
public SftpPathIterator(SftpPath path, Iterator<? extends SftpClient.DirEntry> iter, DirectoryStream.Filter<? super Path> filter)
-
-
Method Detail
-
getRootPath
public final SftpPath getRootPath()
- Returns:
- The root
SftpPathfor this directory iterator
-
getFilter
public final DirectoryStream.Filter<? super Path> getFilter()
- Returns:
- The original filter - may be
nullto indicate no filter
-
close
public final void close() throws IOException- Throws:
IOException
-
nextEntry
protected SftpPath nextEntry(SftpPath root, DirectoryStream.Filter<? super Path> selector)
-
-