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
IOExceptionLocalDestFile 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.IOExceptionLocalDestFile 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.IOExceptionvoid setPermissions(int perms)
throws IOException
perms - permissions e.g. 0644IOExceptionvoid setLastAccessedTime(long t)
throws IOException
t - time in seconds since Unix epochIOExceptionvoid setLastModifiedTime(long t)
throws IOException
t - time in seconds since Unix epochIOExceptionCopyright © 2009–2014. All rights reserved.