Package org.apache.wicket.util.file
Class Path
- java.lang.Object
-
- org.apache.wicket.util.file.Path
-
- All Implemented Interfaces:
IResourceFinder
public class Path extends Object implements IResourceFinder
AnIResourceFinder
that looks for its resources in a filesystem path.- Author:
- Jonathan Locke, Carl-Eric Menzel
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IResourceStream
find(Class<?> clazz, String pathname)
Looks forpathname
in the providedfolder
.String
toString()
-
-
-
Method Detail
-
find
public IResourceStream find(Class<?> clazz, String pathname)
Looks forpathname
in the providedfolder
.- Specified by:
find
in interfaceIResourceFinder
- Parameters:
clazz
- The class requesting the resource streampathname
- the path to the needed resource. Must be relative tofolder
- Returns:
- The resource stream
- See Also:
IResourceFinder.find(Class, String)
-
toString
public String toString()
- Overrides:
toString
in classObject
- See Also:
Object.toString()
-
-