FilePathZip2
This is a read-only file system that allows to access databases stored in a .zip or .jar file. The problem of this file system is that data is always accessed as a stream. This implementation allows to stack file systems.
Methods
static FilePathZip2
register
()
Register the file system.
static FilePathZip2
register
()
Register the file system.
Returns:
the instance
boolean
canWrite
()
boolean
canWrite
()
void
createDirectory
()
void
createDirectory
()
boolean
createFile
()
boolean
createFile
()
FilePath
createTempFile
(String suffix, boolean deleteOnExit, boolean inTempDir)
FilePath
createTempFile
(String suffix, boolean deleteOnExit, boolean inTempDir) throws IOException
void
delete
()
void
delete
()
boolean
exists
()
boolean
exists
()
FilePath
getParent
()
FilePath
getParent
()
FilePathZip2
getPath
(String path)
FilePathZip2
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)
ArrayList
newDirectoryStream
()
ArrayList
newDirectoryStream
()
InputStream
newInputStream
()
InputStream
newInputStream
() throws IOException
OutputStream
newOutputStream
(boolean append)
OutputStream
newOutputStream
(boolean append)
FileChannel
open
(String mode)
FileChannel
open
(String mode) throws IOException
boolean
setReadOnly
()
boolean
setReadOnly
()
long
size
()
long
size
()
FilePath
toRealPath
()
FilePath
toRealPath
()
FilePath
unwrap
()
FilePath
unwrap
()