public class MessageFile extends File
pathSeparator, pathSeparatorChar, separator, separatorChar
Constructor and Description |
---|
MessageFile(File parent,
String child) |
MessageFile(File directory,
String fileName,
long id,
FileCache fileCache) |
MessageFile(File directory,
String fileName,
long id,
FileCache fileCache,
boolean withinFileCacheCapacity) |
MessageFile(String pathname) |
MessageFile(String parent,
String child) |
MessageFile(URI uri) |
Modifier and Type | Method and Description |
---|---|
boolean |
destroy() |
boolean |
equals(Object o) |
long |
getId() |
OutputStream |
getOutputStream() |
int |
hashCode() |
boolean |
isWithinFileCacheCapacity() |
FileChannel |
openFileChannel()
Always position the file pointer to the start of the file and returns a FileChannel
|
void |
release() |
void |
reset()
Reset resources before reuse
|
canExecute, canRead, canWrite, compareTo, createNewFile, createTempFile, createTempFile, delete, deleteOnExit, exists, getAbsoluteFile, getAbsolutePath, getCanonicalFile, getCanonicalPath, getFreeSpace, getName, getParent, getParentFile, getPath, getTotalSpace, getUsableSpace, isAbsolute, isDirectory, isFile, isHidden, lastModified, length, list, list, listFiles, listFiles, listFiles, listRoots, mkdir, mkdirs, renameTo, setExecutable, setExecutable, setLastModified, setReadable, setReadable, setReadOnly, setWritable, setWritable, toPath, toString, toURI, toURL
public MessageFile(File directory, String fileName, long id, FileCache fileCache, boolean withinFileCacheCapacity)
public MessageFile(String pathname)
public MessageFile(URI uri)
public void reset() throws IOException
IOException
- on error while truncating the filepublic void release()
public long getId()
public boolean isWithinFileCacheCapacity()
public OutputStream getOutputStream()
public FileChannel openFileChannel()
public boolean destroy()
Copyright © 2010–2016 AdroitLogic. All rights reserved.