protected static class VelocityScriptEngine.SingleResourceReader extends StringResourceLoader
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(Reader r) |
Modifier and Type | Method and Description |
---|---|
Reader |
getResourceReader(String source,
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 SingleResourceReader(Reader r)
public Reader getResourceReader(String source, 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.Copyright © 2000–2017 The Apache Software Foundation. All rights reserved.