Package org.apache.sshd.sftp.client.impl
Class StfpIterableDirHandle
java.lang.Object
org.apache.sshd.sftp.client.impl.StfpIterableDirHandle
- All Implemented Interfaces:
Iterable<SftpClient.DirEntry>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal SftpClient
The client instancefinal SftpClient.Handle
iterator()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
client
-
handle
-
-
Constructor Details
-
StfpIterableDirHandle
- Parameters:
client
- TheSftpClient
to use for iterationhandle
- The remote directorySftpClient.Handle
-
-
Method Details
-
getClient
The client instance- Returns:
SftpClient
instance used to access the remote file
-
getHandle
- Returns:
- The remote directory
SftpClient.Handle
-
iterator
- Specified by:
iterator
in interfaceIterable<SftpClient.DirEntry>
-