public interface LocalDestFile
Modifier and Type | Method and Description |
---|---|
LocalDestFile |
getChild(String name) |
OutputStream |
getOutputStream() |
LocalDestFile |
getTargetDirectory(String dirname)
Allows caller to express intent that caller expects to write to directory with
dirname . |
LocalDestFile |
getTargetFile(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.
|
OutputStream getOutputStream() throws IOException
IOException
LocalDestFile getChild(String name)
name
.LocalDestFile getTargetFile(String filename) throws IOException
filename
. Based on this
information, an implementation may return an alternate file to write to, which should be respected by the
caller.IOException
LocalDestFile getTargetDirectory(String dirname) throws IOException
dirname
. Based on this
information, an implementation may return an alternate directory to write to, which should be respected by the
caller.IOException
void setPermissions(int perms) throws IOException
perms
- permissions e.g. 0644IOException
void setLastAccessedTime(long t) throws IOException
t
- time in seconds since Unix epochIOException
void setLastModifiedTime(long t) throws IOException
t
- time in seconds since Unix epochIOException
Copyright © 2009–2013. All rights reserved.