Package org.mycore.datamodel.niofs.ifs2
Class MCRIFSFileSystem
java.lang.Object
java.nio.file.FileSystem
org.mycore.datamodel.niofs.MCRAbstractFileSystem
org.mycore.datamodel.niofs.ifs2.MCRIFSFileSystem
- All Implemented Interfaces:
Closeable
,AutoCloseable
- Author:
- Thomas Scheffler (yagee)
-
Field Summary
Fields inherited from class org.mycore.datamodel.niofs.MCRAbstractFileSystem
SEPARATOR, SEPARATOR_STRING
-
Method Summary
Modifier and TypeMethodDescriptionvoid
createRoot
(String owner) Creates a new root under the given name.provider()
void
removeRoot
(String owner) Removes a root with the given name.Methods inherited from class org.mycore.datamodel.niofs.MCRAbstractFileSystem
close, emptyPath, getInstance, getPath, getPath, getPathMatcher, getRootDirectory, getSeparator, getUserPrincipalLookupService, isOpen, isReadOnly, newWatchService, supportedFileAttributeViews, toThisFileSystem, verifies, verifies
-
Method Details
-
provider
- Specified by:
provider
in classFileSystem
-
getRootDirectories
- Specified by:
getRootDirectories
in classFileSystem
-
getFileStores
- Specified by:
getFileStores
in classFileSystem
-
createRoot
Description copied from class:MCRAbstractFileSystem
Creates a new root under the given name. After calling this method the implementing FileSystem should be ready to accept data for this root.- Specified by:
createRoot
in classMCRAbstractFileSystem
- Parameters:
owner
- ,e.g. derivate ID- Throws:
FileSystemException
- if creating the root directory failsFileAlreadyExistsException
- more specific, if the directory already exists
-
removeRoot
Description copied from class:MCRAbstractFileSystem
Removes a root with the given name. Call this method if you want to remove a stalled directory that is not in use anymore.- Specified by:
removeRoot
in classMCRAbstractFileSystem
- Parameters:
owner
- ,e.g. derivate ID- Throws:
FileSystemException
- if removing the root directory failsDirectoryNotEmptyException
- more specific, if the directory is not emptyNoSuchFileException
- more specific, if the directory does not exist
-