public interface LocalDestFile
Modifier and Type | Method and Description |
---|---|
LocalDestFile |
getChild(java.lang.String name) |
java.io.OutputStream |
getOutputStream() |
LocalDestFile |
getTargetDirectory(java.lang.String dirname)
Allows caller to express intent that caller expects to write to directory with
dirname . |
LocalDestFile |
getTargetFile(java.lang.String filename)
Allows caller to express intent that caller expects to write to file with
filename . |
void |
setLastAccessedTime(long t)
Set the last access time for the underlying file.
|
void |
setLastModifiedTime(long t)
Set the last modified time for the underlying file.
|
void |
setPermissions(int perms)
Set the permissions for the underlying file.
|
java.io.OutputStream getOutputStream() throws java.io.IOException
java.io.IOException
LocalDestFile getChild(java.lang.String name)
name
.LocalDestFile getTargetFile(java.lang.String filename) throws java.io.IOException
filename
. Based on this
information, an implementation may return an alternate file to write to, which should be respected by the
caller.java.io.IOException
LocalDestFile getTargetDirectory(java.lang.String dirname) throws java.io.IOException
dirname
. Based on this
information, an implementation may return an alternate directory to write to, which should be respected by the
caller.java.io.IOException
void setPermissions(int perms) throws java.io.IOException
perms
- permissions e.g. 0644java.io.IOException
void setLastAccessedTime(long t) throws java.io.IOException
t
- time in seconds since Unix epochjava.io.IOException
void setLastModifiedTime(long t) throws java.io.IOException
t
- time in seconds since Unix epochjava.io.IOException