Class MCRAbstractFileStore

java.lang.Object
java.nio.file.FileStore
org.mycore.datamodel.niofs.MCRAbstractFileStore
Direct Known Subclasses:
MCRFileStore

public abstract class MCRAbstractFileStore extends FileStore
Author:
Thomas Scheffler
  • Constructor Details

    • MCRAbstractFileStore

      public MCRAbstractFileStore()
  • Method Details

    • getBaseDirectory

      public abstract Path getBaseDirectory() throws IOException
      Returns base directory of this filestore.
      Throws:
      IOException
    • getPhysicalPath

      public abstract Path getPhysicalPath(MCRPath path)
      Translates the given path into an absolute path of the physical filesystem. To retrieve a relative path use Path.relativize(Path) on getBaseDirectory(). The returned path may not exist or may be null.