org.carrot2.util.resources
Class ClassLoaderResource
java.lang.Object
org.carrot2.util.resources.URLResource
org.carrot2.util.resources.ClassLoaderResource
- All Implemented Interfaces:
- Resource
public final class ClassLoaderResource
- extends URLResource
A resource loaded using a class loader. This resource provider caches
the content of returned resources and closes the stream handle in
open().
ClassLoaderResource
public ClassLoaderResource(ClassLoader cl,
String resource)
open
public InputStream open()
throws IOException
- Description copied from interface:
Resource
- Open an input stream to the resource.
- Specified by:
open in interface Resource- Overrides:
open in class URLResource
- Throws:
IOException
Copyright (c) Dawid Weiss, Stanislaw Osinski