Class StfpIterableDirHandle
- java.lang.Object
-
- org.apache.sshd.client.subsystem.sftp.StfpIterableDirHandle
-
- All Implemented Interfaces:
Iterable<SftpClient.DirEntry>
public class StfpIterableDirHandle extends Object implements Iterable<SftpClient.DirEntry>
-
-
Constructor Summary
Constructors Constructor Description StfpIterableDirHandle(SftpClient client, SftpClient.Handle handle)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SftpClient
getClient()
The client instanceSftpClient.Handle
getHandle()
SftpDirEntryIterator
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
-
-
-
-
Constructor Detail
-
StfpIterableDirHandle
public StfpIterableDirHandle(SftpClient client, SftpClient.Handle handle)
- Parameters:
client
- TheSftpClient
to use for iterationhandle
- The remote directorySftpClient.Handle
-
-
Method Detail
-
getClient
public final SftpClient getClient()
The client instance- Returns:
SftpClient
instance used to access the remote file
-
getHandle
public final SftpClient.Handle getHandle()
- Returns:
- The remote directory
SftpClient.Handle
-
iterator
public SftpDirEntryIterator iterator()
- Specified by:
iterator
in interfaceIterable<SftpClient.DirEntry>
-
-