|
Carrot2 v3.3.0
API Documentation |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.carrot2.util.resource.ClassLoaderResource
public final class ClassLoaderResource
A resource loaded using a class loader. This resource provider caches the content of
returned resources and closes the stream handle in open().
| Constructor Summary | |
|---|---|
ClassLoaderResource(ClassLoader cl,
String resource)
|
|
ClassLoaderResource(String resource)
|
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
int |
hashCode()
|
InputStream |
open()
Open an input stream to the resource. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClassLoaderResource(String resource)
public ClassLoaderResource(ClassLoader cl,
String resource)
| Method Detail |
|---|
public InputStream open()
throws IOException
IResource
open in interface IResourceIOExceptionpublic boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode 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 | ||||||||