public class SftpDirectoryStream extends Object implements DirectoryStream<Path>
DirectoryStream
DirectoryStream.Filter<T>
Constructor and Description |
---|
SftpDirectoryStream(SftpPath path) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
SftpClient |
getClient()
Client instance used to access the remote directory
|
Iterator<Path> |
iterator() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public SftpDirectoryStream(SftpPath path) throws IOException
path
- The remote SftpPath
IOException
- If failed to initialize the directory access handlepublic final SftpClient getClient()
SftpClient
instance used to access the remote directorypublic void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2008–2016 The Apache Software Foundation. All rights reserved.