Package org.mycore.datamodel.niofs
Class MCRAbstractFileStore
java.lang.Object
java.nio.file.FileStore
org.mycore.datamodel.niofs.MCRAbstractFileStore
- Direct Known Subclasses:
MCRFileStore
- Author:
- Thomas Scheffler
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract Path
Returns base directory of this filestore.abstract Path
getPhysicalPath
(MCRPath path) Translates the given path into an absolute path of the physical filesystem.Methods inherited from class java.nio.file.FileStore
getAttribute, getBlockSize, getFileStoreAttributeView, getTotalSpace, getUnallocatedSpace, getUsableSpace, isReadOnly, name, supportsFileAttributeView, supportsFileAttributeView, type
-
Constructor Details
-
MCRAbstractFileStore
public MCRAbstractFileStore()
-
-
Method Details
-
getBaseDirectory
Returns base directory of this filestore.- Throws:
IOException
-
getPhysicalPath
Translates the given path into an absolute path of the physical filesystem. To retrieve a relative path usePath.relativize(Path)
ongetBaseDirectory()
. The returned path may not exist or may be null.
-