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

public class DirectoryHandle extends Handle implements Iterator<Path>
  • Field Details

    • done

      private boolean done
    • sendDotDot

      private boolean sendDotDot
    • sendDot

      private boolean sendDot
    • ds

      private DirectoryStream<Path> ds
    • fileList

      private Iterator<Path> fileList
  • Constructor Details

  • 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()
      Specified by:
      hasNext in interface Iterator<Path>
    • next

      public Path next()
      Specified by:
      next in interface Iterator<Path>
    • remove

      public void remove()
      Specified by:
      remove in interface Iterator<Path>
    • close

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Channel
      Specified by:
      close in interface Closeable
      Overrides:
      close in class Handle
      Throws:
      IOException