Class SftpClient.Handle

java.lang.Object
org.apache.sshd.sftp.client.SftpClient.Handle
Direct Known Subclasses:
SftpClient.CloseableHandle
Enclosing interface:
SftpClient

public static class SftpClient.Handle extends Object
  • Field Details

    • path

      private final String path
    • id

      private final byte[] id
  • Constructor Details

    • Handle

      Handle(String path, byte[] id)
  • Method Details

    • getPath

      public String getPath()
      Returns:
      The remote path represented by this handle
    • length

      public int length()
    • getIdentifier

      public byte[] getIdentifier()
      Returns:
      A cloned instance of the identifier in order to avoid inadvertent modifications to the handle contents
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object