public class SftpDirectoryStream
extends java.lang.Object
implements java.nio.file.DirectoryStream<java.nio.file.Path>
DirectoryStream| Modifier and Type | Field and Description |
|---|---|
private java.lang.Iterable<SftpClient.DirEntry> |
iter |
private SftpPath |
p |
private SftpClient |
sftp |
| Constructor and Description |
|---|
SftpDirectoryStream(SftpPath path) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
SftpClient |
getClient()
Client instance used to access the remote directory
|
java.util.Iterator<java.nio.file.Path> |
iterator() |
private final SftpClient sftp
private final java.lang.Iterable<SftpClient.DirEntry> iter
private final SftpPath p
public final SftpClient getClient()
SftpClient instance used to access the remote directorypublic java.util.Iterator<java.nio.file.Path> iterator()
iterator in interface java.lang.Iterable<java.nio.file.Path>iterator in interface java.nio.file.DirectoryStream<java.nio.file.Path>public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOException