public interface StringResourceRepository
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getEncoding()
Returns the current encoding of this repository.
|
StringResource |
getStringResource(java.lang.String name)
get the string resource that is stored with given key
|
void |
putStringResource(java.lang.String name,
java.lang.String body)
add a string resource with given key.
|
void |
putStringResource(java.lang.String name,
java.lang.String body,
java.lang.String encoding)
add a string resource with given key.
|
void |
removeStringResource(java.lang.String name)
delete a string resource with given key.
|
void |
setEncoding(java.lang.String encoding)
Sets the default encoding of the repository.
|
StringResource getStringResource(java.lang.String name)
name
- String name to retrieve from the repository.void putStringResource(java.lang.String name, java.lang.String body)
name
- The String name to store the template under.body
- A String containing a template.void putStringResource(java.lang.String name, java.lang.String body, java.lang.String encoding)
name
- The String name to store the template under.body
- A String containing a template.encoding
- The encoding of this string templatevoid removeStringResource(java.lang.String name)
name
- The string name to remove from the repository.void setEncoding(java.lang.String encoding)
encoding
- The encoding to use.java.lang.String getEncoding()