Package org.apache.sshd.sftp.server
Class DirectoryHandle
java.lang.Object
org.apache.sshd.sftp.server.Handle
org.apache.sshd.sftp.server.DirectoryHandle
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Channel
,Iterator<Path>
,AttributeRepository
,AttributeStore
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.sshd.common.AttributeRepository
AttributeRepository.AttributeKey<T>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
private DirectoryStream<Path>
private boolean
private boolean
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.sshd.sftp.server.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
-
Field Details
-
done
private boolean done -
sendDotDot
private boolean sendDotDot -
sendDot
private boolean sendDot -
ds
-
fileList
-
-
Constructor Details
-
DirectoryHandle
- Throws:
IOException
-
-
Method Details
-
isDone
public boolean isDone() -
markDone
public void markDone() -
isSendDot
public boolean isSendDot() -
markDotSent
public void markDotSent() -
isSendDotDot
public boolean isSendDotDot() -
markDotDotSent
public void markDotDotSent() -
hasNext
public boolean hasNext() -
next
-
remove
public void remove() -
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceChannel
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classHandle
- Throws:
IOException
-