Class DirectoryHandle
- java.lang.Object
-
- org.apache.sshd.server.subsystem.sftp.Handle
-
- org.apache.sshd.server.subsystem.sftp.DirectoryHandle
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Channel
,Iterator<Path>
,AttributeRepository
,AttributeStore
public class DirectoryHandle extends Handle implements Iterator<Path>
- Author:
- Apache MINA SSHD Project
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.sshd.common.AttributeRepository
AttributeRepository.AttributeKey<T>
-
-
Constructor Summary
Constructors Constructor Description DirectoryHandle(SftpSubsystem subsystem, Path dir, String handle)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
boolean
hasNext()
boolean
isDone()
boolean
isSendDot()
boolean
isSendDotDot()
void
markDone()
void
markDotDotSent()
void
markDotSent()
Path
next()
void
remove()
-
Methods inherited from class org.apache.sshd.server.subsystem.sftp.Handle
attributeKeys, clearAttributes, computeAttributeIfAbsent, getAttribute, getAttributesCount, getFile, getFileHandle, getSubsystem, isOpen, removeAttribute, setAttribute, signalHandleOpen, signalHandleOpening, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.sshd.common.AttributeRepository
resolveAttribute
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
-
-
-
Constructor Detail
-
DirectoryHandle
public DirectoryHandle(SftpSubsystem subsystem, Path dir, String handle) throws IOException
- Throws:
IOException
-
-
Method Detail
-
isDone
public boolean isDone()
-
markDone
public void markDone()
-
isSendDot
public boolean isSendDot()
-
markDotSent
public void markDotSent()
-
isSendDotDot
public boolean isSendDotDot()
-
markDotDotSent
public void markDotDotSent()
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceChannel
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classHandle
- Throws:
IOException
-
-