|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.spicefactory.cinnamon.config.resource.AbstractResource
org.spicefactory.cinnamon.config.resource.ClassPathResource
public class ClassPathResource
Resource implementation for class path resources.
| Constructor Summary | |
|---|---|
ClassPathResource(String path)
Creates a new ClassPathResource for the given path using the thread context ClassLoader. |
|
ClassPathResource(String path,
Class<?> c)
Creates a new ClassPathResource for the given path using the specified Class to load the resource. |
|
ClassPathResource(String path,
ClassLoader classLoader)
Creates a new ClassPathResource for the given path using the specified ClassLoader. |
|
| Method Summary | |
|---|---|
InputStream |
getInputStream()
Creates an InputStream for this Resource. |
| Methods inherited from class org.spicefactory.cinnamon.config.resource.AbstractResource |
|---|
getPath |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClassPathResource(String path)
path - the path within the class path
public ClassPathResource(String path,
ClassLoader classLoader)
path - the path within the class path
public ClassPathResource(String path,
Class<?> c)
path - the path within the class pathc - the Class to use for loading the resource| Method Detail |
|---|
public InputStream getInputStream()
Resource
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||