Package org.apache.sshd.sftp.client.impl
Class SftpIterableDirEntry
java.lang.Object
org.apache.sshd.sftp.client.impl.SftpIterableDirEntry
- All Implemented Interfaces:
Iterable<SftpClient.DirEntry>,SftpClientHolder
public class SftpIterableDirEntry
extends Object
implements SftpClientHolder, Iterable<SftpClient.DirEntry>
Provides an
Iterable implementation of the SftpClient.DirEntry-ies for a remote directory-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal SftpClientfinal StringgetPath()The remotely accessed directory pathiterator()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
client
-
path
-
-
Constructor Details
-
SftpIterableDirEntry
- Parameters:
client- TheSftpClientinstance to use for the iterationpath- The remote directory path
-
-
Method Details
-
getClient
- Specified by:
getClientin interfaceSftpClientHolder
-
getPath
The remotely accessed directory path- Returns:
- Remote directory path
-
iterator
- Specified by:
iteratorin interfaceIterable<SftpClient.DirEntry>
-