Class VirtualFileObject

java.lang.Object
com.sshtools.common.files.AbstractFileAdapter
com.sshtools.common.files.vfs.VirtualFileObject
All Implemented Interfaces:
com.sshtools.common.files.AbstractFile, VirtualFile
Direct Known Subclasses:
VirtualMappedFile, VirtualMountFile

public abstract class VirtualFileObject extends com.sshtools.common.files.AbstractFileAdapter implements VirtualFile
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     

    Fields inherited from class com.sshtools.common.files.AbstractFileAdapter

    file
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.sshtools.common.sftp.SftpFileAttributes
     
    com.sshtools.common.files.AbstractFileFactory<? extends com.sshtools.common.files.AbstractFile>
     
     
    Deprecated.
    void
     

    Methods inherited from class com.sshtools.common.files.AbstractFileAdapter

    copyFrom, createFolder, createNewFile, delete, exists, getAbsolutePath, getCanonicalPath, getChildren, getInputStream, getName, getOutputStream, getOutputStream, getParentFile, init, isDirectory, isFile, isHidden, isReadable, isWritable, lastModified, length, linkFrom, linkTo, moveTo, openFile, readSymbolicLink, resolveFile, setAttributes, startMultipartUpload, supportsMultipartTransfers, supportsRandomAccess, symlinkFrom, symlinkTo, truncate

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.sshtools.common.files.AbstractFile

    copyFrom, createFolder, createNewFile, delete, exists, existsNoFollowLinks, getAbsolutePath, getAttributesNoFollowLinks, getCanonicalPath, getChildren, getInputStream, getName, getOutputStream, getOutputStream, getParentFile, getVolume, isDirectory, isFile, isHidden, isReadable, isWritable, lastModified, length, linkFrom, linkTo, moveTo, open, openFile, readSymbolicLink, resolveFile, setAttributes, startMultipartUpload, supportsMultipartTransfers, supportsRandomAccess, symlinkFrom, symlinkTo, truncate

    Methods inherited from interface com.sshtools.common.files.vfs.VirtualFile

    isMount, resolveFile
  • Field Details

  • Constructor Details

  • Method Details

    • refresh

      public void refresh()
      Specified by:
      refresh in interface com.sshtools.common.files.AbstractFile
      Overrides:
      refresh in class com.sshtools.common.files.AbstractFileAdapter
    • getMount

      public VirtualMount getMount()
      Specified by:
      getMount in interface VirtualFile
    • getParentMount

      @Deprecated public VirtualMount getParentMount()
      Deprecated.
    • getFileFactory

      public com.sshtools.common.files.AbstractFileFactory<? extends com.sshtools.common.files.AbstractFile> getFileFactory()
      Specified by:
      getFileFactory in interface com.sshtools.common.files.AbstractFile
      Specified by:
      getFileFactory in class com.sshtools.common.files.AbstractFileAdapter
    • getAttributes

      public com.sshtools.common.sftp.SftpFileAttributes getAttributes() throws IOException, com.sshtools.common.permissions.PermissionDeniedException
      Specified by:
      getAttributes in interface com.sshtools.common.files.AbstractFile
      Overrides:
      getAttributes in class com.sshtools.common.files.AbstractFileAdapter
      Throws:
      IOException
      com.sshtools.common.permissions.PermissionDeniedException