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 SftpClient
final String
getPath()
The remotely accessed directory pathiterator()
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
-
path
-
-
Constructor Details
-
SftpIterableDirEntry
- Parameters:
client
- TheSftpClient
instance to use for the iterationpath
- The remote directory path
-
-
Method Details
-
getClient
- Specified by:
getClient
in interfaceSftpClientHolder
-
getPath
The remotely accessed directory path- Returns:
- Remote directory path
-
iterator
- Specified by:
iterator
in interfaceIterable<SftpClient.DirEntry>
-