Package one.microstream.afs.nio.types
Class NioFileSystem.Default
java.lang.Object
one.microstream.afs.types.AFileSystem.Abstract<NioIoHandler,Path,Path>
one.microstream.afs.nio.types.NioFileSystem.Default
- All Implemented Interfaces:
NioFileSystem,ACreator,AFileSystem,AResolver<Path,Path>,AResolving,ARoot.Creator,WriteController
- Enclosing interface:
- NioFileSystem
public static class NioFileSystem.Default extends AFileSystem.Abstract<NioIoHandler,Path,Path> implements NioFileSystem
-
Nested Class Summary
Nested classes/interfaces inherited from interface one.microstream.afs.types.ACreator
ACreator.CreatorNested classes/interfaces inherited from interface one.microstream.afs.types.AFileSystem
AFileSystem.Abstract<H extends AIoHandler,D,F>Nested classes/interfaces inherited from interface one.microstream.afs.nio.types.NioFileSystem
NioFileSystem.Default, NioFileSystem.DefaultsNested classes/interfaces inherited from interface one.microstream.afs.types.WriteController
WriteController.Disabled, WriteController.Enabled -
Constructor Summary
Constructors Modifier Constructor Description protectedDefault(String defaultProtocol, NioIoHandler ioHandler) -
Method Summary
Modifier and Type Method Description protected VarStringassembleItemPath(AItem item, VarString vs)AReadableFileconvertToReading(AWritableFile file)AWritableFileconvertToWriting(AReadableFile file)AFilecreateFile(ADirectory parent, String identifier, String name, String type)StringderiveFileIdentifier(String fileName, String fileType)StringderiveFileName(String fileIdentifier)StringderiveFileType(String fileIdentifier)ADirectoryensureDefaultRoot()Ensures the default root directory.StringgetFileName(AFile file)StringgetFileType(AFile file)Pathresolve(ADirectory directory)Pathresolve(AFile file)String[]resolveDirectoryToPath(Path directory)String[]resolveFileToPath(Path file)AReadableFilewrapForReading(AFile file, Object user)AWritableFilewrapForWriting(AFile file, Object user)Methods inherited from class one.microstream.afs.types.AFileSystem.Abstract
accessManager, accessRoots, addRoot, assemblePath, assemblePath, buildPath, createRootDirectory, creator, defaultProtocol, ensureCreator, ensureDirectoryPath, ensureFilePath, ensureRoot, ensureRoot, fileSystem, getRoot, ioHandler, isWritable, lookupRoot, removeRoot, removeRoot, resolveDirectoryPath, validateIsWritable, validateMemberMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface one.microstream.afs.types.AFileSystem
accessManager, accessRoots, addRoot, assemblePath, assemblePath, assemblePath, assemblePath, buildPath, buildPath, buildPath, creator, defaultProtocol, ensureDirectoryPath, ensureDirectoryPath, ensureFilePath, ensureFilePath, ensureFilePath, ensureRoot, ensureRoot, getRoot, lookupRoot, removeRoot, removeRoot, validateMemberMethods inherited from interface one.microstream.afs.types.AResolver
ensureDirectory, ensureFile, fileSystem, resolveDirectory, resolveFileMethods inherited from interface one.microstream.afs.types.AResolving
resolveDirectoryPath, resolveDirectoryPath, resolveFilePath, resolveFilePath, resolveFilePathMethods inherited from interface one.microstream.afs.types.ARoot.Creator
createRootDirectory, protocolMethods inherited from interface one.microstream.afs.types.WriteController
isWritable, validateIsWritable
-
Constructor Details
-
Method Details
-
ensureDefaultRoot
Description copied from interface:AFileSystemEnsures the default root directory. May not be supported by different file system implementations.- Specified by:
ensureDefaultRootin interfaceAFileSystem- Specified by:
ensureDefaultRootin interfaceNioFileSystem- Overrides:
ensureDefaultRootin classAFileSystem.Abstract<NioIoHandler,Path,Path>
-
deriveFileIdentifier
- Specified by:
deriveFileIdentifierin interfaceAFileSystem
-
deriveFileName
- Specified by:
deriveFileNamein interfaceAFileSystem
-
deriveFileType
- Specified by:
deriveFileTypein interfaceAFileSystem
-
getFileName
- Specified by:
getFileNamein interfaceAFileSystem
-
getFileType
- Specified by:
getFileTypein interfaceAFileSystem
-
createFile
- Specified by:
createFilein interfaceACreator
-
resolveDirectoryToPath
- Specified by:
resolveDirectoryToPathin interfaceAResolver<Path,Path>
-
resolveFileToPath
- Specified by:
resolveFileToPathin interfaceAResolver<Path,Path>
-
resolve
-
resolve
-
assembleItemPath
- Specified by:
assembleItemPathin classAFileSystem.Abstract<NioIoHandler,Path,Path>
-
wrapForReading
- Specified by:
wrapForReadingin interfaceAFileSystem
-
wrapForWriting
- Specified by:
wrapForWritingin interfaceAFileSystem
-
convertToReading
- Specified by:
convertToReadingin interfaceAFileSystem
-
convertToWriting
- Specified by:
convertToWritingin interfaceAFileSystem
-