Class SftpIterableDirEntry
- java.lang.Object
-
- org.apache.sshd.client.subsystem.sftp.SftpIterableDirEntry
-
- All Implemented Interfaces:
Iterable<SftpClient.DirEntry>
public class SftpIterableDirEntry extends Object implements Iterable<SftpClient.DirEntry>
Provides anIterable
implementation of theSftpClient.DirEntry
-ies for a remote directory- Author:
- Apache MINA SSHD Project
-
-
Constructor Summary
Constructors Constructor Description SftpIterableDirEntry(SftpClient client, String path)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SftpClient
getClient()
The client instanceString
getPath()
The remotely accessed directory pathSftpDirEntryIterator
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
-
SftpIterableDirEntry
public SftpIterableDirEntry(SftpClient client, String path)
- Parameters:
client
- TheSftpClient
instance to use for the iterationpath
- The remote directory path
-
-
Method Detail
-
getClient
public final SftpClient getClient()
The client instance- Returns:
SftpClient
instance used to access the remote file
-
getPath
public final String getPath()
The remotely accessed directory path- Returns:
- Remote directory path
-
iterator
public SftpDirEntryIterator iterator()
- Specified by:
iterator
in interfaceIterable<SftpClient.DirEntry>
-
-