Class RemoteResource

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable
    Direct Known Subclasses:
    RemoteDirectory, RemoteFile

    public abstract class RemoteResource
    extends java.lang.Object
    implements java.io.Closeable
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected byte[] handle  
      protected org.slf4j.Logger log
      Logger
      protected java.lang.String path  
      protected SFTPEngine requester  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected RemoteResource​(SFTPEngine requester, java.lang.String path, byte[] handle)  
    • Field Detail

      • log

        protected final org.slf4j.Logger log
        Logger
      • path

        protected final java.lang.String path
      • handle

        protected final byte[] handle
    • Constructor Detail

      • RemoteResource

        protected RemoteResource​(SFTPEngine requester,
                                 java.lang.String path,
                                 byte[] handle)
    • Method Detail

      • getPath

        public java.lang.String getPath()
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Throws:
        java.io.IOException
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object