Class SftpDirectoryStream
- java.lang.Object
-
- org.apache.sshd.client.subsystem.sftp.fs.SftpDirectoryStream
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Iterable<Path>
,DirectoryStream<Path>
public class SftpDirectoryStream extends Object implements DirectoryStream<Path>
Implements a remoteDirectoryStream
- Author:
- Apache MINA SSHD Project
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface java.nio.file.DirectoryStream
DirectoryStream.Filter<T extends Object>
-
-
Constructor Summary
Constructors Constructor Description SftpDirectoryStream(SftpPath path)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
SftpClient
getClient()
Client instance used to access the remote directoryIterator<Path>
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
-
SftpDirectoryStream
public SftpDirectoryStream(SftpPath path) throws IOException
- Parameters:
path
- The remoteSftpPath
- Throws:
IOException
- If failed to initialize the directory access handle
-
-
Method Detail
-
getClient
public final SftpClient getClient()
Client instance used to access the remote directory- Returns:
- The
SftpClient
instance used to access the remote directory
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
-