protected static class VelocityScriptEngine.SingleResourceReader extends StringResourceLoader
Modifier and Type | Field and Description |
---|---|
private java.io.Reader |
reader |
repository, REPOSITORY_CLASS, REPOSITORY_CLASS_DEFAULT, REPOSITORY_ENCODING, REPOSITORY_NAME, REPOSITORY_NAME_DEFAULT, REPOSITORY_STATIC, REPOSITORY_STATIC_DEFAULT, STATIC_REPOSITORIES
className, isCachingOn, log, modificationCheckInterval, rsvc
Constructor and Description |
---|
SingleResourceReader(java.io.Reader r) |
Modifier and Type | Method and Description |
---|---|
java.io.Reader |
getResourceReader(java.lang.String source,
java.lang.String encoding)
Get a reader so that the Runtime can build a
template with it.
|
clearRepositories, createRepository, getLastModified, getRepository, getRepository, init, isSourceModified, removeRepository, resourceExists, setRepository
buildReader, commonInit, getClassName, getModificationCheckInterval, isCachingOn, setCachingOn, setModificationCheckInterval
public java.io.Reader getResourceReader(java.lang.String source, java.lang.String encoding) throws ResourceNotFoundException
StringResourceLoader
getResourceReader
in class StringResourceLoader
source
- name of template to get.encoding
- asked encodingResourceNotFoundException
- Ff template not found
in the RepositoryFactory.