Package org.apache.sshd.sftp.client.impl
Class SftpIterableDirEntry
- java.lang.Object
-
- org.apache.sshd.sftp.client.impl.SftpIterableDirEntry
-
- All Implemented Interfaces:
java.lang.Iterable<SftpClient.DirEntry>,SftpClientHolder
public class SftpIterableDirEntry extends java.lang.Object implements SftpClientHolder, java.lang.Iterable<SftpClient.DirEntry>
Provides anIterableimplementation of theSftpClient.DirEntry-ies for a remote directory
-
-
Field Summary
Fields Modifier and Type Field Description private SftpClientclientprivate java.lang.Stringpath
-
Constructor Summary
Constructors Constructor Description SftpIterableDirEntry(SftpClient client, java.lang.String path)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SftpClientgetClient()java.lang.StringgetPath()The remotely accessed directory pathSftpDirEntryIteratoriterator()
-
-
-
Field Detail
-
client
private final SftpClient client
-
path
private final java.lang.String path
-
-
Constructor Detail
-
SftpIterableDirEntry
public SftpIterableDirEntry(SftpClient client, java.lang.String path)
- Parameters:
client- TheSftpClientinstance to use for the iterationpath- The remote directory path
-
-
Method Detail
-
getClient
public final SftpClient getClient()
- Specified by:
getClientin interfaceSftpClientHolder
-
getPath
public final java.lang.String getPath()
The remotely accessed directory path- Returns:
- Remote directory path
-
iterator
public SftpDirEntryIterator iterator()
- Specified by:
iteratorin interfacejava.lang.Iterable<SftpClient.DirEntry>
-
-