Top Fields Constructors Methods
org.apache.sshd.sftp.client.impl

public Class StfpIterableDirHandle

extends Object
implements SftpClientHolder, Iterable<SftpClient.DirEntry>
Class Inheritance
All Implemented Interfaces
java.lang.Iterable, org.apache.sshd.sftp.client.SftpClientHolder
Imports
java.util.Objects, org.apache.sshd.sftp.client.SftpClient, .SftpClient.DirEntry, .SftpClient.Handle, .SftpClientHolder

Field Summary

Modifier and TypeField and Description
private final SftpClient
private final SftpClient.Handle

Constructor Summary

AccessConstructor and Description
public
StfpIterableDirHandle(SftpClient
The SftpClient to use for iteration
client
,
SftpClient.Handle
The remote directory Handle
handle
)

Method Summary

Modifier and TypeMethod and Description
public final SftpClient
public final SftpClient.Handle

Returns:

The remote directory Handle
getHandle
()

public SftpDirEntryIterator
iterator()

Implements java.lang.Iterable.iterator.

Returns an iterator over elements of type T.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

clientback to summary
private final SftpClient client
handleback to summary
private final SftpClient.Handle handle

Constructor Detail

StfpIterableDirHandleback to summary
public StfpIterableDirHandle(SftpClient client, SftpClient.Handle handle)
Parameters
client:SftpClient

The SftpClient to use for iteration

handle:SftpClient.Handle

The remote directory Handle

Method Detail

getClientback to summary
public final SftpClient getClient()

Implements org.apache.sshd.sftp.client.SftpClientHolder.getClient.

Annotations
@Override
getHandleback to summary
public final SftpClient.Handle getHandle()
Returns:SftpClient.Handle

The remote directory Handle

iteratorback to summary
public SftpDirEntryIterator iterator()

Implements java.lang.Iterable.iterator.

Doc from java.lang.Iterable.iterator.

Returns an iterator over elements of type T.

Returns:SftpDirEntryIterator

an Iterator.

Annotations
@Override