org.apache.wicket.util.file
Class Path

java.lang.Object
  extended by org.apache.wicket.util.file.Path
All Implemented Interfaces:
IResourceFinder

public class Path
extends Object
implements IResourceFinder

An IResourceFinder that looks for its resources in a filesystem path.

Author:
Jonathan Locke, Carl-Eric Menzel

Constructor Summary
Path(Folder folder)
          Constructor
Path(String folder)
          Constructor
 
Method Summary
 IResourceStream find(Class<?> clazz, String pathname)
          Looks for a given pathname along this path
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Path

public Path(String folder)
Constructor

Parameters:
folder - The folder to look in

Path

public Path(Folder folder)
Constructor

Parameters:
folder - The folder to look in
Method Detail

find

public IResourceStream find(Class<?> clazz,
                            String pathname)
Description copied from interface: IResourceFinder
Looks for a given pathname along this path

Specified by:
find in interface IResourceFinder
Parameters:
clazz - The class requesting the resource stream
pathname - The filename with possible path
Returns:
The resource stream
See Also:
IResourceFinder.find(Class, String)

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()


Copyright © 2006-2012 Apache Software Foundation. All Rights Reserved.