public class StfpIterableDirHandle extends java.lang.Object implements java.lang.Iterable<SftpClient.DirEntry>
| Modifier and Type | Field and Description |
|---|---|
private SftpClient |
client |
private SftpClient.Handle |
handle |
| Constructor and Description |
|---|
StfpIterableDirHandle(SftpClient client,
SftpClient.Handle handle) |
| Modifier and Type | Method and Description |
|---|---|
SftpClient |
getClient()
The client instance
|
SftpClient.Handle |
getHandle() |
SftpDirEntryIterator |
iterator() |
private final SftpClient client
private final SftpClient.Handle handle
public StfpIterableDirHandle(SftpClient client, SftpClient.Handle handle)
client - The SftpClient to use for iterationhandle - The remote directory SftpClient.Handlepublic final SftpClient getClient()
SftpClient instance used to access the remote filepublic final SftpClient.Handle getHandle()
SftpClient.Handlepublic SftpDirEntryIterator iterator()
iterator in interface java.lang.Iterable<SftpClient.DirEntry>