|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ResourceWriter
This interface defines the methods that classes with
ResourceWriter functionalities have to implement.
A ResourceWriter provides an abstract way of modifying
resources. According to a name, a resource and its content can be added,
updated or removed.
ResourceFinder| Method Summary | |
|---|---|
void |
addResource(String name,
String content)
Adds a resource with the provided name and content. |
boolean |
removeResource(String name)
Removes the resource with the provided name. |
boolean |
updateResource(String name,
String content)
Updates the content of the resource with the provided name. |
| Method Detail |
|---|
void addResource(String name,
String content)
throws ResourceWriterErrorException
name - the name of the resourcecontent - the content of the resource
ResourceWriterErrorException - if an error occurred during the
resource addition.
boolean updateResource(String name,
String content)
throws ResourceWriterErrorException
name - the name of the resourcecontent - the content of the resource
ResourceWriterErrorException - if an error occurred during the
resource update.
boolean removeResource(String name)
throws ResourceWriterErrorException
name - the name of the resource
ResourceWriterErrorException - if an error occurred during the
resource removal.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||