Package org.h2.store.fs.niomem
Class FilePathNioMemLZF
- java.lang.Object
-
- org.h2.store.fs.FilePath
-
- org.h2.store.fs.niomem.FilePathNioMem
-
- org.h2.store.fs.niomem.FilePathNioMemLZF
-
public class FilePathNioMemLZF extends FilePathNioMem
A memory file system that compresses blocks to conserve memory.
-
-
Field Summary
-
Fields inherited from class org.h2.store.fs.niomem.FilePathNioMem
compressLaterCachePercent
-
-
Constructor Summary
Constructors Constructor Description FilePathNioMemLZF()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) booleancompressed()Whether the file should be compressed.FilePathNioMemgetPath(java.lang.String path)Convert a file to a path.java.lang.StringgetScheme()Get the scheme (prefix) for this file provider.protected booleanisRoot()-
Methods inherited from class org.h2.store.fs.niomem.FilePathNioMem
canWrite, createDirectory, createFile, delete, exists, getCanonicalPath, getParent, isAbsolute, isDirectory, lastModified, moveTo, newDirectoryStream, open, setReadOnly, size, toRealPath
-
Methods inherited from class org.h2.store.fs.FilePath
createTempFile, get, getName, newFileChannelOutputStream, newInputStream, newOutputStream, register, toString, unregister, unwrap
-
-
-
-
Method Detail
-
compressed
boolean compressed()
Description copied from class:FilePathNioMemWhether the file should be compressed.- Overrides:
compressedin classFilePathNioMem- Returns:
- true if it should be compressed.
-
getPath
public FilePathNioMem getPath(java.lang.String path)
Description copied from class:FilePathConvert a file to a path. This is similar tojava.nio.file.spi.FileSystemProvider.getPath, but may return an object even if the scheme doesn't match in case of the default file provider.- Overrides:
getPathin classFilePathNioMem- Parameters:
path- the path- Returns:
- the file path object
-
isRoot
protected boolean isRoot()
- Overrides:
isRootin classFilePathNioMem
-
getScheme
public java.lang.String getScheme()
Description copied from class:FilePathGet the scheme (prefix) for this file provider. This is similar tojava.nio.file.spi.FileSystemProvider.getScheme.- Overrides:
getSchemein classFilePathNioMem- Returns:
- the scheme
-
-