FilePathMem
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 for this file name.
static String
getCanonicalPath
(String fileName)
Get the canonical path for this file name.
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:
if it should be compressed.
void
createDirectory
()
void
createDirectory
()
boolean
createFile
()
boolean
createFile
()
void
delete
()
void
delete
()
boolean
exists
()
boolean
exists
()
FilePathMem
getParent
()
FilePathMem
getParent
()
FilePathMem
getPath
(String path)
FilePathMem
getPath
(String path)
String
getScheme
()
String
getScheme
()
boolean
isAbsolute
()
boolean
isAbsolute
()
boolean
isDirectory
()
boolean
isDirectory
()
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
()
FilePathMem
toRealPath
()
FilePathMem
toRealPath
()