|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface NameResolver
NameResolvers are responsible for converting string names into InputStreamProviders, which encapsulate a remote file. Implementations exist that support using URLs, Files, Class resources, and the Servlet API to locate files, but other APIs may be substituted.
In some cases, the resolved target file may have need to locate support files of its own (like imported css files). Since those support files should be looked for relative to the target file, NameResolver supports creating new relative NameResolvers.
Method Summary | |
---|---|
InputStreamProvider |
getProvider(String name)
Given a name, returns an InputStreamProvider. |
NameResolver |
getResolver(String name)
Return the new NameResolver that should be used to resolve names relative to a given name. |
Method Detail |
---|
InputStreamProvider getProvider(String name) throws IOException
name
- the name of the target
IOException
NameResolver getResolver(String name)
name
- the name of the target
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |