Class VFSFile

java.lang.Object
com.sshtools.common.files.AbstractFileImpl<VFSFile>
com.sshtools.common.files.vfs.VFSFile
All Implemented Interfaces:
com.sshtools.common.files.AbstractFile

public class VFSFile extends com.sshtools.common.files.AbstractFileImpl<VFSFile>
  • Constructor Details

  • Method Details

    • getFileObject

      public org.apache.commons.vfs2.FileObject getFileObject()
    • getParentFile

      public com.sshtools.common.files.AbstractFile getParentFile() throws IOException
      Throws:
      IOException
    • exists

      public boolean exists() throws IOException
      Throws:
      IOException
    • createFolder

      public boolean createFolder() throws com.sshtools.common.permissions.PermissionDeniedException, IOException
      Throws:
      com.sshtools.common.permissions.PermissionDeniedException
      IOException
    • lastModified

      public long lastModified() throws IOException
      Throws:
      IOException
    • getName

      public String getName()
    • length

      public long length() throws IOException
      Throws:
      IOException
    • getAttributes

      public com.sshtools.common.sftp.SftpFileAttributes getAttributes() throws IOException
      Throws:
      IOException
    • isHidden

      public boolean isHidden() throws IOException
      Throws:
      IOException
    • isDirectory

      public boolean isDirectory() throws IOException
      Throws:
      IOException
    • getChildren

      public List<com.sshtools.common.files.AbstractFile> getChildren() throws IOException, com.sshtools.common.permissions.PermissionDeniedException
      Throws:
      IOException
      com.sshtools.common.permissions.PermissionDeniedException
    • isFile

      public boolean isFile() throws IOException
      Throws:
      IOException
    • getAbsolutePath

      public String getAbsolutePath() throws IOException, com.sshtools.common.permissions.PermissionDeniedException
      Throws:
      IOException
      com.sshtools.common.permissions.PermissionDeniedException
    • copyFrom

      public void copyFrom(com.sshtools.common.files.AbstractFile src) throws IOException, com.sshtools.common.permissions.PermissionDeniedException
      Throws:
      IOException
      com.sshtools.common.permissions.PermissionDeniedException
    • isReadable

      public boolean isReadable() throws IOException
      Throws:
      IOException
    • isWritable

      public boolean isWritable() throws IOException
      Throws:
      IOException
    • createNewFile

      public boolean createNewFile() throws com.sshtools.common.permissions.PermissionDeniedException, IOException
      Throws:
      com.sshtools.common.permissions.PermissionDeniedException
      IOException
    • truncate

      public void truncate() throws com.sshtools.common.permissions.PermissionDeniedException, IOException
      Throws:
      com.sshtools.common.permissions.PermissionDeniedException
      IOException
    • getInputStream

      public InputStream getInputStream() throws IOException
      Throws:
      IOException
    • getOutputStream

      public OutputStream getOutputStream() throws IOException
      Throws:
      IOException
    • delete

      public boolean delete(boolean recurse) throws IOException
      Throws:
      IOException
    • moveTo

      public void moveTo(com.sshtools.common.files.AbstractFile target) throws IOException, com.sshtools.common.permissions.PermissionDeniedException
      Throws:
      IOException
      com.sshtools.common.permissions.PermissionDeniedException
    • setAttributes

      public void setAttributes(com.sshtools.common.sftp.SftpFileAttributes attrs) throws IOException
      Throws:
      IOException
    • getCanonicalPath

      public String getCanonicalPath() throws IOException, com.sshtools.common.permissions.PermissionDeniedException
      Throws:
      IOException
      com.sshtools.common.permissions.PermissionDeniedException
    • supportsRandomAccess

      public boolean supportsRandomAccess()
    • openFile

      public com.sshtools.common.files.AbstractFileRandomAccess openFile(boolean writeAccess) throws IOException
      Throws:
      IOException
    • refresh

      public void refresh()
    • resolveFile

      public com.sshtools.common.files.AbstractFile resolveFile(String child) throws IOException, com.sshtools.common.permissions.PermissionDeniedException
      Throws:
      IOException
      com.sshtools.common.permissions.PermissionDeniedException
    • doHashCode

      protected int doHashCode()
      Specified by:
      doHashCode in class com.sshtools.common.files.AbstractFileImpl<VFSFile>
    • doEquals

      protected boolean doEquals(Object obj)
      Specified by:
      doEquals in class com.sshtools.common.files.AbstractFileImpl<VFSFile>
    • readSymbolicLink

      public String readSymbolicLink() throws IOException, com.sshtools.common.permissions.PermissionDeniedException
      Throws:
      IOException
      com.sshtools.common.permissions.PermissionDeniedException