Class FileResourceSystem

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.nio.file.Path getResource​(java.lang.String path)
      Obtains the Path to the resource.
      • Methods inherited from class java.lang.Object

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

      • FileResourceSystem

        public FileResourceSystem​(ResourceSystemContext context)
                           throws java.io.IOException
        Instantiate.
        Parameters:
        context - ResourceSystemContext.
        Throws:
        java.io.IOException - If to setup file resources.
    • Method Detail

      • getResource

        public java.nio.file.Path getResource​(java.lang.String path)
                                       throws java.io.IOException
        Description copied from interface: ResourceSystem
        Obtains the Path to the resource.
        Specified by:
        getResource in interface ResourceSystem
        Parameters:
        path - Path for the resource.
        Returns:
        Path if resource found, otherwise null.
        Throws:
        java.io.IOException - If failure in obtaining Path.