public class SftpIterableDirEntry extends java.lang.Object implements java.lang.Iterable<SftpClient.DirEntry>
Iterable
implementation of the SftpClient.DirEntry
-ies
for a remote directoryModifier and Type | Field and Description |
---|---|
private SftpClient |
client |
private java.lang.String |
path |
Constructor and Description |
---|
SftpIterableDirEntry(SftpClient client,
java.lang.String path) |
Modifier and Type | Method and Description |
---|---|
SftpClient |
getClient()
The client instance
|
java.lang.String |
getPath()
The remotely accessed directory path
|
SftpDirEntryIterator |
iterator() |
private final SftpClient client
private final java.lang.String path
public SftpIterableDirEntry(SftpClient client, java.lang.String path)
client
- The SftpClient
instance to use for the iterationpath
- The remote directory pathpublic final SftpClient getClient()
SftpClient
instance used to access the remote filepublic final java.lang.String getPath()
public SftpDirEntryIterator iterator()
iterator
in interface java.lang.Iterable<SftpClient.DirEntry>