|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ResourceHandler
Specifies the behavior of classes used to resolve resources.
| Method Summary | |
|---|---|
boolean |
accepts(String uri)
Returns true if this handler "recognizes" resources with the
given URI. |
boolean |
accepts(URI uri)
|
InputStream |
getResource(String uri)
Returns the stream corresponding to the given URI. |
Resource |
getResourceObject(String uri)
Returns the resource object corresponding to the given URI. |
| Method Detail |
|---|
InputStream getResource(String uri)
throws IOException,
ResourceNotFoundException
uri - a URI.
InputStream.
ResourceNotFoundException - if a resource corresponding to the
URI could does not exist.
IOException - if a problem occurs.
Resource getResourceObject(String uri)
throws IOException
uri - a URI.
Resource.
IOException - if a problem occurs.boolean accepts(String uri)
true if this handler "recognizes" resources with the
given URI. This methods is used to hold resource handlers in a chain of
responsability.
uri - a URI.
true if this handler can handle resources with the
given URI.boolean accepts(URI uri)
uri - a URI.
true if this handler can handle resources with the
given URI.accepts(String)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||