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 pathname in the provided folder.
 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)
Looks for pathname in the provided folder.

Specified by:
find in interface IResourceFinder
Parameters:
clazz - The class requesting the resource stream
pathname - the path to the needed resource. Must be relative to folder
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–2013 Apache Software Foundation. All rights reserved.