Package de.mhus.lib.core.util
Class SimpleFileProvider
- java.lang.Object
-
- de.mhus.lib.core.util.SimpleFileProvider
-
- All Implemented Interfaces:
FileResolver
public class SimpleFileProvider extends Object implements FileResolver
-
-
Constructor Summary
Constructors Constructor Description SimpleFileProvider(File root)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<String>getContent(String path)Returns a list of pathes with the given path.FilegetFile(String path)FilegetRoot()
-
-
-
Constructor Detail
-
SimpleFileProvider
public SimpleFileProvider(File root)
-
-
Method Detail
-
getFile
public File getFile(String path)
- Specified by:
getFilein interfaceFileResolver
-
getContent
public Set<String> getContent(String path)
Description copied from interface:FileResolverReturns a list of pathes with the given path. Directories ends with slash.- Specified by:
getContentin interfaceFileResolver- Returns:
- the content
-
getRoot
public File getRoot()
- Specified by:
getRootin interfaceFileResolver
-
-