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 boolean
exists(String resource)
InputStream
open(String resource)
String
pathOf(String resource)
-
-
-
Constructor Detail
-
ClassRelativeResourceLookup
public ClassRelativeResourceLookup(Class<?> clazz)
-
-
Method Detail
-
open
public InputStream open(String resource) throws IOException
- Specified by:
open
in interfaceResourceLookup
- Throws:
IOException
-
exists
public boolean exists(String resource)
- Specified by:
exists
in interfaceResourceLookup
-
pathOf
public String pathOf(String resource)
- Specified by:
pathOf
in interfaceResourceLookup
-
-