Package org.h2.store.fs.async
Class FilePathAsync
- java.lang.Object
-
- org.h2.store.fs.FilePath
-
- org.h2.store.fs.FilePathWrapper
-
- org.h2.store.fs.async.FilePathAsync
-
public class FilePathAsync extends FilePathWrapper
This file system stores files on disk and uses java.nio.channels.AsynchronousFileChannel to access the files.
-
-
Constructor Summary
Constructors Constructor Description FilePathAsync()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getScheme()
Get the scheme (prefix) for this file provider.java.nio.channels.FileChannel
open(java.lang.String mode)
Open a random access file object.-
Methods inherited from class org.h2.store.fs.FilePathWrapper
canWrite, createDirectory, createFile, createTempFile, delete, exists, getBase, getParent, getPath, getPrefix, isAbsolute, isDirectory, lastModified, moveTo, newDirectoryStream, newInputStream, newOutputStream, setReadOnly, size, toRealPath, unwrap, unwrap, wrap
-
Methods inherited from class org.h2.store.fs.FilePath
get, getName, newFileChannelOutputStream, register, toString, unregister
-
-
-
-
Method Detail
-
open
public java.nio.channels.FileChannel open(java.lang.String mode) throws java.io.IOException
Description copied from class:FilePath
Open a random access file object.- Overrides:
open
in classFilePathWrapper
- Parameters:
mode
- the access mode. Supported are r, rw, rws, rwd- Returns:
- the file object
- Throws:
java.io.IOException
- If an I/O error occurs
-
-