FilePathNioMem
This file system keeps files fully in memory. There is an option to compress file blocks to save memory.
Methods
static String
getCanonicalPath
(String fileName)
Get the canonical path of a file (with backslashes replaced with forward slashes).
static String
getCanonicalPath
(String fileName)
Get the canonical path of a file (with backslashes replaced with forward slashes).
Parameters:
fileName - the file name
Returns:
the canonical path
boolean
canWrite
()
boolean
canWrite
()
boolean
compressed
()
Whether the file should be compressed.
boolean
compressed
()
Whether the file should be compressed.
Returns:
true if it should be compressed.
void
createDirectory
()
void
createDirectory
()
boolean
createFile
()
boolean
createFile
()
void
delete
()
void
delete
()
boolean
exists
()
boolean
exists
()
FilePathNioMem
getParent
()
FilePathNioMem
getParent
()
FilePathNioMem
getPath
(String path)
FilePathNioMem
getPath
(String path)
String
getScheme
()
String
getScheme
()
boolean
isAbsolute
()
boolean
isAbsolute
()
boolean
isDirectory
()
boolean
isDirectory
()
boolean
isRoot
()
boolean
isRoot
()
long
lastModified
()
long
lastModified
()
void
moveTo
(FilePath newName, boolean atomicReplace)
void
moveTo
(FilePath newName, boolean atomicReplace)
List
newDirectoryStream
()
List
newDirectoryStream
()
InputStream
newInputStream
()
InputStream
newInputStream
()
OutputStream
newOutputStream
(boolean append)
OutputStream
newOutputStream
(boolean append) throws IOException
FileChannel
open
(String mode)
FileChannel
open
(String mode)
boolean
setReadOnly
()
boolean
setReadOnly
()
long
size
()
long
size
()
FilePathNioMem
toRealPath
()
FilePathNioMem
toRealPath
()
Fields
static float
compressLaterCachePercent
compressLaterCachePercent
The percentage of uncompressed (cached) entries.