Top Description Constructors Methods
org.h2.store.fs.async

public Class FilePathAsync

extends FilePathWrapper
Class Inheritance
Imports
java.io.IOException, java.nio.channels.FileChannel, org.h2.store.fs.FilePathWrapper

This file system stores files on disk and uses java.nio.channels.AsynchronousFileChannel to access the files.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String
getScheme()

Implements abstract org.h2.store.fs.FilePath.getScheme.

Get the scheme (prefix) for this file provider.

public FileChannel
open(String
the access mode. Supported are r, rw, rws, rwd
mode
)

Overrides org.h2.store.fs.FilePathWrapper.open.

Open a random access file object.

Inherited from org.h2.store.fs.FilePathWrapper:
canWritecreateDirectorycreateFilecreateTempFiledeleteexistsgetBasegetParentgetPathgetPrefixisAbsoluteisDirectoryisRegularFilelastModifiedmoveTonewDirectoryStreamnewInputStreamnewOutputStreamsetReadOnlysizetoRealPathunwrapunwrapwrap

Constructor Detail

FilePathAsyncback to summary
public FilePathAsync()

Method Detail

getSchemeback to summary
public String getScheme()

Implements abstract org.h2.store.fs.FilePath.getScheme.

Doc from org.h2.store.fs.FilePath.getScheme.

Get the scheme (prefix) for this file provider. This is similar to java.nio.file.spi.FileSystemProvider.getScheme.

Returns:String

the scheme

Annotations
@Override
openback to summary
public FileChannel open(String mode) throws IOException

Overrides org.h2.store.fs.FilePathWrapper.open.

Doc from org.h2.store.fs.FilePath.open.

Open a random access file object.

Parameters
mode:String

the access mode. Supported are r, rw, rws, rwd

Returns:FileChannel

the file object

Annotations
@Override
Exceptions
IOException:
If an I/O error occurs