Package org.apache.sshd.sftp.client.impl
Class SftpIterableDirEntry
- java.lang.Object
-
- org.apache.sshd.sftp.client.impl.SftpIterableDirEntry
-
- All Implemented Interfaces:
Iterable<SftpClient.DirEntry>
,SftpClientHolder
public class SftpIterableDirEntry extends Object implements SftpClientHolder, 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()
String
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()
- Specified by:
getClient
in interfaceSftpClientHolder
-
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>
-
-