org.h2.store.fs
Class FileSystemDiskNioMapped

java.lang.Object
  extended by org.h2.store.fs.FileSystem
      extended by org.h2.store.fs.FileSystemDisk
          extended by org.h2.store.fs.FileSystemDiskNio
              extended by org.h2.store.fs.FileSystemDiskNioMapped

public class FileSystemDiskNioMapped
extends FileSystemDiskNio

This file system stores files on disk and uses java.nio to access the files. This class used memory mapped files.


Constructor Summary
FileSystemDiskNioMapped()
           
 
Method Summary
protected  java.lang.String getPrefix()
          Get the prefix for this file system.
protected  FileObject open(java.lang.String fileName, java.lang.String mode)
          Try to open a file with this name and mode.
 
Methods inherited from class org.h2.store.fs.FileSystemDiskNio
accepts, createTempFile, getAbsolutePath, getParent, listFiles, normalize, openFileInputStream, openFileObject, translateFileName
 
Methods inherited from class org.h2.store.fs.FileSystemDisk
canWrite, copy, createDirs, createNewFile, delete, deleteRecursive, exists, expandUserHomeDirectory, fileStartsWith, freeMemoryAndFinalize, getFileName, getInstance, getLastModified, isAbsolute, isDirectory, isReadOnly, length, openFileOutputStream, rename, setReadOnly, trace, tryDelete
 
Methods inherited from class org.h2.store.fs.FileSystem
getInstance, getNextTempFileNamePart, mkdirs, register, unregister
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileSystemDiskNioMapped

public FileSystemDiskNioMapped()
Method Detail

getPrefix

protected java.lang.String getPrefix()
Description copied from class: FileSystemDiskNio
Get the prefix for this file system.

Overrides:
getPrefix in class FileSystemDiskNio
Returns:
the prefix

open

protected FileObject open(java.lang.String fileName,
                          java.lang.String mode)
                   throws java.io.IOException
Description copied from class: FileSystemDiskNio
Try to open a file with this name and mode.

Overrides:
open in class FileSystemDiskNio
Parameters:
fileName - the file name
mode - the open mode
Returns:
the file object
Throws:
java.io.IOException - if opening fails