Class HashFileSystemHelper


  • public class HashFileSystemHelper
    extends java.lang.Object
    Helper for the FileSystem offer
    • Constructor Summary

      Constructors 
      Constructor Description
      HashFileSystemHelper​(java.lang.String rootPath)
      Constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void createContainer​(java.lang.String container)
      Create a directory recursively in the sub tree
      void createDirectories​(java.nio.file.Path path)
      Create recursively the directories
      java.nio.file.Path getPathContainer​(java.lang.String containerName)
      Get the path of a container
      java.nio.file.Path getPathObject​(java.lang.String container, java.lang.String objectId)
      Get the path of an object based on its container and the objectId
      boolean isContainer​(java.lang.String subpath)  
      java.util.List<java.lang.String> splitObjectId​(java.lang.String objectId)
      Split objectId without extension
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • HashFileSystemHelper

        public HashFileSystemHelper​(java.lang.String rootPath)
        Constructor
        Parameters:
        rootPath - : the base path of the storage . Will be appended to all requests
        Throws:
        java.lang.IllegalArgumentException - : if rootPath is equals to / (to prevent error)