public class DirectoryHandle extends Handle implements java.util.Iterator<java.nio.file.Path>
AttributeRepository.AttributeKey<T>
Modifier and Type | Field and Description |
---|---|
private boolean |
done |
private java.nio.file.DirectoryStream<java.nio.file.Path> |
ds |
private java.util.Iterator<java.nio.file.Path> |
fileList |
private boolean |
sendDot |
private boolean |
sendDotDot |
Constructor and Description |
---|
DirectoryHandle(SftpSubsystem subsystem,
java.nio.file.Path dir,
java.lang.String handle) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
boolean |
hasNext() |
boolean |
isDone() |
boolean |
isSendDot() |
boolean |
isSendDotDot() |
void |
markDone() |
void |
markDotDotSent() |
void |
markDotSent() |
java.nio.file.Path |
next() |
void |
remove() |
attributeKeys, clearAttributes, computeAttributeIfAbsent, getAttribute, getAttributesCount, getFile, getFileHandle, isOpen, removeAttribute, setAttribute, signalHandleOpen, signalHandleOpening, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
ofAttributesMap, ofKeyValuePair, resolveAttribute
private boolean done
private boolean sendDotDot
private boolean sendDot
private java.nio.file.DirectoryStream<java.nio.file.Path> ds
private java.util.Iterator<java.nio.file.Path> fileList
public DirectoryHandle(SftpSubsystem subsystem, java.nio.file.Path dir, java.lang.String handle) throws java.io.IOException
java.io.IOException
public boolean isDone()
public void markDone()
public boolean isSendDot()
public void markDotSent()
public boolean isSendDotDot()
public void markDotDotSent()
public boolean hasNext()
hasNext
in interface java.util.Iterator<java.nio.file.Path>
public java.nio.file.Path next()
next
in interface java.util.Iterator<java.nio.file.Path>
public void remove()
remove
in interface java.util.Iterator<java.nio.file.Path>