org.h2.mvstore.cache
Class FilePathCache

java.lang.Object
  extended by org.h2.store.fs.FilePath
      extended by org.h2.store.fs.FilePathWrapper
          extended by org.h2.mvstore.cache.FilePathCache

public class FilePathCache
extends FilePathWrapper

A file with a read cache.


Nested Class Summary
static class FilePathCache.FileCache
          A file with a read cache.
 
Field Summary
 
Fields inherited from class org.h2.store.fs.FilePath
name
 
Constructor Summary
FilePathCache()
           
 
Method Summary
 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.
static java.nio.channels.FileChannel wrap(java.nio.channels.FileChannel f)
           
 
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, getNextTempFileNamePart, register, toString, unregister
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FilePathCache

public FilePathCache()
Method Detail

wrap

public static java.nio.channels.FileChannel wrap(java.nio.channels.FileChannel f)

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 class FilePathWrapper
Parameters:
mode - the access mode. Supported are r, rw, rws, rwd
Returns:
the file object
Throws:
java.io.IOException

getScheme

public java.lang.String getScheme()
Description copied from class: FilePath
Get the scheme (prefix) for this file provider. This is similar to java.nio.file.spi.FileSystemProvider.getScheme.

Specified by:
getScheme in class FilePath
Returns:
the scheme