Interface ISqlJetFileSystem

All Known Implementing Classes:
SqlJetFileSystem

public interface ISqlJetFileSystem
File System Interface. An instance of the ISqlJetFileSystem object defines the interface between the SqlJet core and the underlying file system. The randomness(), sleep(), and currentTime() interfaces are not strictly a part of the filesystem, but they are included in the ISqlJetFileSystem structure for completeness.
Author:
TMate Software Ltd., Sergey Scherbina (sergey.scherbina@gmail.com)
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    access(java.io.File path, SqlJetFileAccesPermission permission)
    The flags argument to access() may be SqlJetFileAccesPermission.EXISTS to test for the existence of a file, or SqlJetFileAccesPermission.READWRITE to test whether a file is readable and writable, or SqlJetFileAccesPermission#READ to test whether a file is at least readable.
    long
    The currentTime() method returns a Julian Day Number for the current date and time.
    boolean
    delete(java.io.File path, boolean sync)
    Delete the file.
    java.lang.String
    getFullPath(java.io.File filename)
     
    java.lang.String
    The getName() returns the name of the FS module.
    java.io.File
     
    Open a memory journal file.
    open(java.io.File path, SqlJetFileType type, java.util.Set<SqlJetFileOpenPermission> permissions)
    The flags argument to open() includes all set in the flags argument to ISqlJet.open().
    byte[]
    randomness(int numBytes)
    The randomness() function returns numBytes bytes of good-quality randomness.
    long
    sleep(long microseconds)
    The sleep() method causes the calling thread to sleep for at least the number of microseconds given.