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.Creator
Nested 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.Defaults
Nested classes/interfaces inherited from interface one.microstream.afs.types.WriteController
WriteController.Disabled, WriteController.Enabled
-
Constructor Summary
Constructors Modifier Constructor Description protected
Default(String defaultProtocol, NioIoHandler ioHandler)
-
Method Summary
Modifier and Type Method Description protected VarString
assembleItemPath(AItem item, VarString vs)
AReadableFile
convertToReading(AWritableFile file)
AWritableFile
convertToWriting(AReadableFile file)
AFile
createFile(ADirectory parent, String identifier, String name, String type)
String
deriveFileIdentifier(String fileName, String fileType)
String
deriveFileName(String fileIdentifier)
String
deriveFileType(String fileIdentifier)
ADirectory
ensureDefaultRoot()
Ensures the default root directory.String
getFileName(AFile file)
String
getFileType(AFile file)
Path
resolve(ADirectory directory)
Path
resolve(AFile file)
String[]
resolveDirectoryToPath(Path directory)
String[]
resolveFileToPath(Path file)
AReadableFile
wrapForReading(AFile file, Object user)
AWritableFile
wrapForWriting(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, validateMember
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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, validateMember
Methods inherited from interface one.microstream.afs.types.AResolver
ensureDirectory, ensureFile, fileSystem, resolveDirectory, resolveFile
Methods inherited from interface one.microstream.afs.types.AResolving
resolveDirectoryPath, resolveDirectoryPath, resolveFilePath, resolveFilePath, resolveFilePath
Methods inherited from interface one.microstream.afs.types.ARoot.Creator
createRootDirectory, protocol
Methods inherited from interface one.microstream.afs.types.WriteController
isWritable, validateIsWritable
-
Constructor Details
-
Method Details
-
ensureDefaultRoot
Description copied from interface:AFileSystem
Ensures the default root directory. May not be supported by different file system implementations.- Specified by:
ensureDefaultRoot
in interfaceAFileSystem
- Specified by:
ensureDefaultRoot
in interfaceNioFileSystem
- Overrides:
ensureDefaultRoot
in classAFileSystem.Abstract<NioIoHandler,Path,Path>
-
deriveFileIdentifier
- Specified by:
deriveFileIdentifier
in interfaceAFileSystem
-
deriveFileName
- Specified by:
deriveFileName
in interfaceAFileSystem
-
deriveFileType
- Specified by:
deriveFileType
in interfaceAFileSystem
-
getFileName
- Specified by:
getFileName
in interfaceAFileSystem
-
getFileType
- Specified by:
getFileType
in interfaceAFileSystem
-
createFile
- Specified by:
createFile
in interfaceACreator
-
resolveDirectoryToPath
- Specified by:
resolveDirectoryToPath
in interfaceAResolver<Path,Path>
-
resolveFileToPath
- Specified by:
resolveFileToPath
in interfaceAResolver<Path,Path>
-
resolve
-
resolve
-
assembleItemPath
- Specified by:
assembleItemPath
in classAFileSystem.Abstract<NioIoHandler,Path,Path>
-
wrapForReading
- Specified by:
wrapForReading
in interfaceAFileSystem
-
wrapForWriting
- Specified by:
wrapForWriting
in interfaceAFileSystem
-
convertToReading
- Specified by:
convertToReading
in interfaceAFileSystem
-
convertToWriting
- Specified by:
convertToWriting
in interfaceAFileSystem
-