public abstract class InMemoryDestFile extends Object implements LocalDestFile
| Modifier and Type | Field and Description |
|---|---|
protected org.slf4j.Logger |
log |
| Constructor and Description |
|---|
InMemoryDestFile() |
| Modifier and Type | Method and Description |
|---|---|
LocalDestFile |
getChild(String name) |
LocalDestFile |
getTargetDirectory(String dirname)
Allows caller to express intent that caller expects to write to directory with
dirname. |
InMemoryDestFile |
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetOutputStreampublic InMemoryDestFile getTargetFile(String filename) throws IOException
LocalDestFilefilename. Based on this
information, an implementation may return an alternate file to write to, which should be respected by the
caller.getTargetFile in interface LocalDestFileIOExceptionpublic void setLastAccessedTime(long t)
throws IOException
LocalDestFilesetLastAccessedTime in interface LocalDestFilet - time in seconds since Unix epochIOExceptionpublic void setLastModifiedTime(long t)
throws IOException
LocalDestFilesetLastModifiedTime in interface LocalDestFilet - time in seconds since Unix epochIOExceptionpublic void setPermissions(int perms)
throws IOException
LocalDestFilesetPermissions in interface LocalDestFileperms - permissions e.g. 0644IOExceptionpublic LocalDestFile getTargetDirectory(String dirname) throws IOException
LocalDestFiledirname. Based on this
information, an implementation may return an alternate directory to write to, which should be respected by the
caller.getTargetDirectory in interface LocalDestFileIOExceptionpublic LocalDestFile getChild(String name)
getChild in interface LocalDestFilename.Copyright © 2009–2014. All rights reserved.