|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.asual.lesscss.loader.ChainedResourceLoader
public class ChainedResourceLoader
A ResourceLoader delegates to a sequence of other loaders, asking
each one for the requested resource in turn.
| Constructor Summary | |
|---|---|
ChainedResourceLoader(ResourceLoader... loaders)
Creates a new ChainedResourceLoader. |
|
| Method Summary | |
|---|---|
boolean |
exists(String path)
Returns true, if any of the delegate loaders returns from
exists(String) for the given path. |
String |
load(String path,
String charset)
The first delegate that returns from exists(String) for
the given path will have load(String, String) invoked, and the
result will be retured. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ChainedResourceLoader(ResourceLoader... loaders)
loaders - the loaders to delegate to. Order of the loaders is important.| Method Detail |
|---|
public boolean exists(String path)
throws IOException
true, if any of the delegate loaders returns from
exists(String) for the given path.
exists in interface ResourceLoaderpath - resource path.
true if the resource exists.
IOException - when i/o error occurs while checking for resource existence.
public String load(String path,
String charset)
throws IOException
exists(String) for
the given path will have load(String, String) invoked, and the
result will be retured.
load in interface ResourceLoaderpath - resource path.charset - character set name, valid with respect to
Charset.
IOException - when i/o error occurs while loading the resource, or charset
is invalid.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||