|
Carrot2 v3.6.0-SNAPSHOT
API Documentation |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.carrot2.util.resource.DirLocator
public final class DirLocator
Looks up resources in a folder.
| Constructor Summary | |
|---|---|
DirLocator(File dir)
Initializes the locator using the given directory. |
|
DirLocator(String dirPath)
Initializes the locator using the given path. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object target)
Override equals to return true for locators scanning an identical
set of locations. |
IResource[] |
getAll(String resource)
Locate all matching resources and return their IResource handles. |
int |
hashCode()
Override hash code to return consistent hash code depending on all locations scanned by this locator. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DirLocator(File dir)
public DirLocator(String dirPath)
| Method Detail |
|---|
public IResource[] getAll(String resource)
IResourceLocatorIResource handles.
getAll in interface IResourceLocatorpublic int hashCode()
IResourceLocator
hashCode in interface IResourceLocatorhashCode in class Objectpublic boolean equals(Object target)
IResourceLocatortrue for locators scanning an identical
set of locations.
equals in interface IResourceLocatorequals in class Objectpublic String toString()
toString in class Object
|
Please refer to project documentation at
http://project.carrot2.org |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||