Package org.carrot2.util
Class ClassRelativeResourceLookup
- java.lang.Object
-
- org.carrot2.util.ClassRelativeResourceLookup
-
- All Implemented Interfaces:
ResourceLookup
public class ClassRelativeResourceLookup extends Object implements ResourceLookup
-
-
Constructor Summary
Constructors Constructor Description ClassRelativeResourceLookup(Class<?> clazz)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanexists(String resource)InputStreamopen(String resource)StringpathOf(String resource)
-
-
-
Constructor Detail
-
ClassRelativeResourceLookup
public ClassRelativeResourceLookup(Class<?> clazz)
-
-
Method Detail
-
open
public InputStream open(String resource) throws IOException
- Specified by:
openin interfaceResourceLookup- Throws:
IOException
-
exists
public boolean exists(String resource)
- Specified by:
existsin interfaceResourceLookup
-
pathOf
public String pathOf(String resource)
- Specified by:
pathOfin interfaceResourceLookup
-
-