|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Interface for resource provider, loaded by "Resources", classes that implement a provider that produce resources, that match given path.
| Method Summary | |
java.util.Map |
getArguments()
returns the arguments defined for this resource |
Resource |
getResource(java.lang.String path)
return a resource that match given path |
java.lang.String |
getScheme()
returns the scheme of the resource |
ResourceProvider |
init(java.lang.String scheme,
java.util.Map arguments)
this class is called by the "Resources" at startup |
boolean |
isAttributesSupported()
returns if the resource support attributes for his resources |
boolean |
isCaseSensitive()
returns if the resources of the provider are case-sensitive or not |
boolean |
isModeSupported()
returns if the resource support mode for his resources |
void |
lock(Resource res)
|
void |
read(Resource res)
|
void |
setResources(Resources resources)
|
void |
unlock(Resource res)
|
| Method Detail |
public ResourceProvider init(java.lang.String scheme,
java.util.Map arguments)
scheme - of the provider (can be "null")arguments - initals argument (can be "null")public Resource getResource(java.lang.String path)
path -
public java.lang.String getScheme()
public java.util.Map getArguments()
public void setResources(Resources resources)
public void unlock(Resource res)
public void lock(Resource res)
throws java.io.IOException
java.io.IOException
public void read(Resource res)
throws java.io.IOException
java.io.IOExceptionpublic boolean isCaseSensitive()
public boolean isModeSupported()
public boolean isAttributesSupported()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||