Class FileResourceSystem
- java.lang.Object
-
- net.officefloor.web.resource.file.FileResourceSystem
-
- All Implemented Interfaces:
ResourceSystem
public class FileResourceSystem extends java.lang.Object implements ResourceSystem
ResourceSystemfor files.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description FileResourceSystem(ResourceSystemContext context)Instantiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.nio.file.PathgetResource(java.lang.String path)Obtains thePathto the resource.
-
-
-
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.IOExceptionDescription copied from interface:ResourceSystemObtains thePathto the resource.- Specified by:
getResourcein interfaceResourceSystem- Parameters:
path- Path for the resource.- Returns:
Pathif resource found, otherwisenull.- Throws:
java.io.IOException- If failure in obtainingPath.
-
-