public class MessageFile
extends java.io.File
Constructor and Description |
---|
MessageFile(java.io.File parent,
java.lang.String child) |
MessageFile(java.io.File directory,
java.lang.String fileName,
long id,
boolean memoryMapped,
int bufferSize,
FileCache fileCache) |
MessageFile(java.io.File directory,
java.lang.String fileName,
long id,
boolean memoryMapped,
int bufferSize,
FileCache fileCache,
boolean reusable) |
MessageFile(java.lang.String pathname) |
MessageFile(java.lang.String parent,
java.lang.String child) |
MessageFile(java.net.URI uri) |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
boolean |
equals(java.lang.Object o) |
long |
getId() |
java.io.OutputStream |
getOutputStream() |
int |
hashCode() |
boolean |
isReusable() |
java.nio.channels.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(java.io.File directory, java.lang.String fileName, long id, boolean memoryMapped, int bufferSize, FileCache fileCache)
public MessageFile(java.io.File directory, java.lang.String fileName, long id, boolean memoryMapped, int bufferSize, FileCache fileCache, boolean reusable)
public MessageFile(java.lang.String pathname)
public MessageFile(java.lang.String parent, java.lang.String child)
public MessageFile(java.io.File parent, java.lang.String child)
public MessageFile(java.net.URI uri)
public void reset() throws java.io.IOException
java.io.IOException
- on error while truncating the filepublic void release()
public long getId()
public boolean isReusable()
public java.io.OutputStream getOutputStream()
public java.nio.channels.FileChannel openFileChannel()
public void destroy()
public boolean equals(java.lang.Object o)
equals
in class java.io.File
public int hashCode()
hashCode
in class java.io.File