public static class NioFileSystem.Default extends AFileSystem.Abstract<NioIoHandler,Path,Path> implements NioFileSystem
NioFileSystem.Default, NioFileSystem.DefaultsAFileSystem.Abstract<H extends AIoHandler,D,F>WriteController.Disabled, WriteController.EnabledACreator.Creator| Modifier | Constructor and Description |
|---|---|
protected |
Default(String defaultProtocol,
NioIoHandler ioHandler) |
| Modifier and Type | Method and Description |
|---|---|
protected one.microstream.chars.VarString |
assembleItemPath(AItem item,
one.microstream.chars.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()
Returns the default root directory, depending on the NIO implementation.
|
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) |
accessManager, accessRoots, addRoot, assemblePath, assemblePath, buildPath, createRootDirectory, creator, defaultProtocol, ensureCreator, ensureDirectoryPath, ensureFilePath, ensureRoot, ensureRoot, fileSystem, getRoot, ioHandler, isWritable, lookupRoot, removeRoot, removeRoot, resolveDirectoryPath, validateIsWritable, validateMemberclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitioHandler, New, New, New, New, NewaccessManager, accessRoots, addRoot, assemblePath, assemblePath, assemblePath, assemblePath, buildPath, buildPath, buildPath, creator, defaultProtocol, ensureDirectoryPath, ensureDirectoryPath, ensureFilePath, ensureFilePath, ensureFilePath, ensureRoot, ensureRoot, getRoot, lookupRoot, removeRoot, removeRoot, validateMemberresolveDirectoryPath, resolveDirectoryPath, resolveFilePath, resolveFilePath, resolveFilePathDisabled, Enabled, isWritable, validateIsWritableensureDirectory, ensureFile, fileSystem, resolveDirectory, resolveFilecreateDirectory, createFilecreateRootDirectory, protocolprotected Default(String defaultProtocol, NioIoHandler ioHandler)
public final ADirectory ensureDefaultRoot()
NioFileSystemensureDefaultRoot in interface NioFileSystemensureDefaultRoot in interface AFileSystemensureDefaultRoot in class AFileSystem.Abstract<NioIoHandler,Path,Path>public String deriveFileIdentifier(String fileName, String fileType)
deriveFileIdentifier in interface AFileSystempublic String deriveFileName(String fileIdentifier)
deriveFileName in interface AFileSystempublic String deriveFileType(String fileIdentifier)
deriveFileType in interface AFileSystempublic String getFileName(AFile file)
getFileName in interface AFileSystempublic String getFileType(AFile file)
getFileType in interface AFileSystempublic AFile createFile(ADirectory parent, String identifier, String name, String type)
createFile in interface ACreatorpublic String[] resolveDirectoryToPath(Path directory)
resolveDirectoryToPath in interface AResolver<Path,Path>public String[] resolveFileToPath(Path file)
resolveFileToPath in interface AResolver<Path,Path>public Path resolve(ADirectory directory)
protected one.microstream.chars.VarString assembleItemPath(AItem item, one.microstream.chars.VarString vs)
assembleItemPath in class AFileSystem.Abstract<NioIoHandler,Path,Path>public AReadableFile wrapForReading(AFile file, Object user)
wrapForReading in interface AFileSystempublic AWritableFile wrapForWriting(AFile file, Object user)
wrapForWriting in interface AFileSystempublic AReadableFile convertToReading(AWritableFile file)
convertToReading in interface AFileSystempublic AWritableFile convertToWriting(AReadableFile file)
convertToWriting in interface AFileSystemCopyright © 2022 MicroStream Software. All rights reserved.