public class SftpIterableDirEntry extends Object implements SftpClientHolder, Iterable<SftpClient.DirEntry>
Iterable implementation of the SftpClient.DirEntry-ies for a remote directory| Constructor and Description |
|---|
SftpIterableDirEntry(SftpClient client,
String path) |
| Modifier and Type | Method and Description |
|---|---|
SftpClient |
getClient() |
String |
getPath()
The remotely accessed directory path
|
SftpDirEntryIterator |
iterator() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic SftpIterableDirEntry(SftpClient client, String path)
client - The SftpClient instance to use for the iterationpath - The remote directory pathpublic final SftpClient getClient()
getClient in interface SftpClientHolderpublic final String getPath()
public SftpDirEntryIterator iterator()
iterator in interface Iterable<SftpClient.DirEntry>Copyright © 2018–2021 The Apache Software Foundation. All rights reserved.