Class PathFile

java.lang.Object
com.sshtools.common.files.vfs.PathFile
All Implemented Interfaces:
com.sshtools.common.files.AbstractFile

@Deprecated(since="3.1.0", forRemoval=true) public class PathFile extends Object implements com.sshtools.common.files.AbstractFile
Deprecated, for removal: This API element is subject to removal in a future version.
Deprecated. Use NioFileFactory and NioFile.
  • Constructor Summary

    Constructors
    Constructor
    Description
    PathFile(Path path, PathFileFactory factory)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    copyFrom(com.sshtools.common.files.AbstractFile src)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    boolean
    delete(boolean recursive)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    com.sshtools.common.sftp.SftpFileAttributes
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    List<com.sshtools.common.files.AbstractFile>
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    com.sshtools.common.files.AbstractFileFactory<? extends com.sshtools.common.files.AbstractFile>
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    getOutputStream(boolean append)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    com.sshtools.common.files.AbstractFile
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    long
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    long
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    moveTo(com.sshtools.common.files.AbstractFile target)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    com.sshtools.common.files.AbstractFileRandomAccess
    openFile(boolean writeAccess)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    com.sshtools.common.files.AbstractFile
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    setAttributes(com.sshtools.common.sftp.SftpFileAttributes attrs)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    symlinkTo(String target)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
     

    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

    existsNoFollowLinks, getAttributesNoFollowLinks, getVolume, linkFrom, linkTo, open, startMultipartUpload, supportsMultipartTransfers, symlinkFrom
  • Constructor Details

    • PathFile

      public PathFile(Path path, PathFileFactory factory)
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • copyFrom

      public void copyFrom(com.sshtools.common.files.AbstractFile src) throws IOException, com.sshtools.common.permissions.PermissionDeniedException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      copyFrom in interface com.sshtools.common.files.AbstractFile
      Throws:
      IOException
      com.sshtools.common.permissions.PermissionDeniedException
    • createFolder

      public boolean createFolder() throws com.sshtools.common.permissions.PermissionDeniedException, IOException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      createFolder in interface com.sshtools.common.files.AbstractFile
      Throws:
      com.sshtools.common.permissions.PermissionDeniedException
      IOException
    • createNewFile

      public boolean createNewFile() throws com.sshtools.common.permissions.PermissionDeniedException, IOException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      createNewFile in interface com.sshtools.common.files.AbstractFile
      Throws:
      com.sshtools.common.permissions.PermissionDeniedException
      IOException
    • delete

      public boolean delete(boolean recursive) throws IOException, com.sshtools.common.permissions.PermissionDeniedException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      delete in interface com.sshtools.common.files.AbstractFile
      Throws:
      IOException
      com.sshtools.common.permissions.PermissionDeniedException
    • exists

      public boolean exists() throws IOException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      exists in interface com.sshtools.common.files.AbstractFile
      Throws:
      IOException
    • getAbsolutePath

      public String getAbsolutePath() throws IOException, com.sshtools.common.permissions.PermissionDeniedException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getAbsolutePath in interface com.sshtools.common.files.AbstractFile
      Throws:
      IOException
      com.sshtools.common.permissions.PermissionDeniedException
    • getAttributes

      public com.sshtools.common.sftp.SftpFileAttributes getAttributes() throws IOException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getAttributes in interface com.sshtools.common.files.AbstractFile
      Throws:
      IOException
    • getCanonicalPath

      public String getCanonicalPath() throws IOException, com.sshtools.common.permissions.PermissionDeniedException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getCanonicalPath in interface com.sshtools.common.files.AbstractFile
      Throws:
      IOException
      com.sshtools.common.permissions.PermissionDeniedException
    • getChildren

      public List<com.sshtools.common.files.AbstractFile> getChildren() throws IOException, com.sshtools.common.permissions.PermissionDeniedException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getChildren in interface com.sshtools.common.files.AbstractFile
      Throws:
      IOException
      com.sshtools.common.permissions.PermissionDeniedException
    • getFileFactory

      public com.sshtools.common.files.AbstractFileFactory<? extends com.sshtools.common.files.AbstractFile> getFileFactory()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getFileFactory in interface com.sshtools.common.files.AbstractFile
    • getInputStream

      public InputStream getInputStream() throws IOException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getInputStream in interface com.sshtools.common.files.AbstractFile
      Throws:
      IOException
    • getName

      public String getName()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getName in interface com.sshtools.common.files.AbstractFile
    • getOutputStream

      public OutputStream getOutputStream() throws IOException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getOutputStream in interface com.sshtools.common.files.AbstractFile
      Throws:
      IOException
    • getOutputStream

      public OutputStream getOutputStream(boolean append) throws IOException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getOutputStream in interface com.sshtools.common.files.AbstractFile
      Throws:
      IOException
    • isDirectory

      public boolean isDirectory() throws IOException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      isDirectory in interface com.sshtools.common.files.AbstractFile
      Throws:
      IOException
    • isFile

      public boolean isFile() throws IOException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      isFile in interface com.sshtools.common.files.AbstractFile
      Throws:
      IOException
    • isHidden

      public boolean isHidden() throws IOException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      isHidden in interface com.sshtools.common.files.AbstractFile
      Throws:
      IOException
    • isReadable

      public boolean isReadable() throws IOException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      isReadable in interface com.sshtools.common.files.AbstractFile
      Throws:
      IOException
    • isWritable

      public boolean isWritable() throws IOException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      isWritable in interface com.sshtools.common.files.AbstractFile
      Throws:
      IOException
    • lastModified

      public long lastModified() throws IOException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      lastModified in interface com.sshtools.common.files.AbstractFile
      Throws:
      IOException
    • length

      public long length() throws IOException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      length in interface com.sshtools.common.files.AbstractFile
      Throws:
      IOException
    • moveTo

      public void moveTo(com.sshtools.common.files.AbstractFile target) throws IOException, com.sshtools.common.permissions.PermissionDeniedException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      moveTo in interface com.sshtools.common.files.AbstractFile
      Throws:
      IOException
      com.sshtools.common.permissions.PermissionDeniedException
    • openFile

      public com.sshtools.common.files.AbstractFileRandomAccess openFile(boolean writeAccess) throws IOException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      openFile in interface com.sshtools.common.files.AbstractFile
      Throws:
      IOException
    • refresh

      public void refresh()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      refresh in interface com.sshtools.common.files.AbstractFile
    • resolveFile

      public com.sshtools.common.files.AbstractFile resolveFile(String child) throws IOException, com.sshtools.common.permissions.PermissionDeniedException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      resolveFile in interface com.sshtools.common.files.AbstractFile
      Throws:
      IOException
      com.sshtools.common.permissions.PermissionDeniedException
    • setAttributes

      public void setAttributes(com.sshtools.common.sftp.SftpFileAttributes attrs) throws IOException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      setAttributes in interface com.sshtools.common.files.AbstractFile
      Throws:
      IOException
    • supportsRandomAccess

      public boolean supportsRandomAccess()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      supportsRandomAccess in interface com.sshtools.common.files.AbstractFile
    • truncate

      public void truncate() throws com.sshtools.common.permissions.PermissionDeniedException, IOException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      truncate in interface com.sshtools.common.files.AbstractFile
      Throws:
      com.sshtools.common.permissions.PermissionDeniedException
      IOException
    • symlinkTo

      public void symlinkTo(String target) throws IOException, com.sshtools.common.permissions.PermissionDeniedException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      symlinkTo in interface com.sshtools.common.files.AbstractFile
      Throws:
      IOException
      com.sshtools.common.permissions.PermissionDeniedException
    • readSymbolicLink

      public String readSymbolicLink() throws IOException, com.sshtools.common.permissions.PermissionDeniedException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      readSymbolicLink in interface com.sshtools.common.files.AbstractFile
      Throws:
      IOException
      com.sshtools.common.permissions.PermissionDeniedException
    • getParentFile

      public com.sshtools.common.files.AbstractFile getParentFile() throws IOException, com.sshtools.common.permissions.PermissionDeniedException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getParentFile in interface com.sshtools.common.files.AbstractFile
      Throws:
      IOException
      com.sshtools.common.permissions.PermissionDeniedException