Interface LocalDestFile

    • Method Detail

      • getLength

        long getLength()
      • getOutputStream

        java.io.OutputStream getOutputStream()
                                      throws java.io.IOException
        Throws:
        java.io.IOException
      • getOutputStream

        java.io.OutputStream getOutputStream​(boolean append)
                                      throws java.io.IOException
        Throws:
        java.io.IOException
      • getChild

        LocalDestFile getChild​(java.lang.String name)
        Returns:
        A child file/directory of this directory with given name.
      • getTargetFile

        LocalDestFile getTargetFile​(java.lang.String filename)
                             throws java.io.IOException
        Allows caller to express intent that caller expects to write to file with filename. Based on this information, an implementation may return an alternate file to write to, which should be respected by the caller.
        Throws:
        java.io.IOException
      • getTargetDirectory

        LocalDestFile getTargetDirectory​(java.lang.String dirname)
                                  throws java.io.IOException
        Allows caller to express intent that caller expects to write to directory with dirname. Based on this information, an implementation may return an alternate directory to write to, which should be respected by the caller.
        Throws:
        java.io.IOException
      • setPermissions

        void setPermissions​(int perms)
                     throws java.io.IOException
        Set the permissions for the underlying file.
        Parameters:
        perms - permissions e.g. 0644
        Throws:
        java.io.IOException
      • setLastAccessedTime

        void setLastAccessedTime​(long t)
                          throws java.io.IOException
        Set the last access time for the underlying file.
        Parameters:
        t - time in seconds since Unix epoch
        Throws:
        java.io.IOException
      • setLastModifiedTime

        void setLastModifiedTime​(long t)
                          throws java.io.IOException
        Set the last modified time for the underlying file.
        Parameters:
        t - time in seconds since Unix epoch
        Throws:
        java.io.IOException