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 anIterableimplementation 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 SftpClientgetClient()StringgetPath()The remotely accessed directory pathSftpDirEntryIteratoriterator()-
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- TheSftpClientinstance to use for the iterationpath- The remote directory path
-
-
Method Detail
-
getClient
public final SftpClient getClient()
- Specified by:
getClientin interfaceSftpClientHolder
-
getPath
public final String getPath()
The remotely accessed directory path- Returns:
- Remote directory path
-
iterator
public SftpDirEntryIterator iterator()
- Specified by:
iteratorin interfaceIterable<SftpClient.DirEntry>
-
-