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>
public class SftpIterableDirEntry extends java.lang.Object implements java.lang.Iterable<SftpClient.DirEntry>
Provides anIterable
implementation of theSftpClient.DirEntry
-ies for a remote directory
-
-
Field Summary
Fields Modifier and Type Field Description private SftpClient
client
private java.lang.String
path
-
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 SftpClient
getClient()
The client instancejava.lang.String
getPath()
The remotely accessed directory pathSftpDirEntryIterator
iterator()
-
-
-
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
- 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 java.lang.String getPath()
The remotely accessed directory path- Returns:
- Remote directory path
-
iterator
public SftpDirEntryIterator iterator()
- Specified by:
iterator
in interfacejava.lang.Iterable<SftpClient.DirEntry>
-
-