Class VelocityScriptEngine.SingleResourceReader

  • Enclosing class:
    VelocityScriptEngine

    protected static class VelocityScriptEngine.SingleResourceReader
    extends org.apache.velocity.runtime.resource.loader.StringResourceLoader
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.io.Reader reader  
      • Fields inherited from class org.apache.velocity.runtime.resource.loader.StringResourceLoader

        repository, REPOSITORY_CLASS, REPOSITORY_CLASS_DEFAULT, REPOSITORY_ENCODING, REPOSITORY_NAME, REPOSITORY_NAME_DEFAULT, REPOSITORY_STATIC, REPOSITORY_STATIC_DEFAULT, STATIC_REPOSITORIES
      • Fields inherited from class org.apache.velocity.runtime.resource.loader.ResourceLoader

        className, isCachingOn, log, modificationCheckInterval, rsvc
    • Constructor Summary

      Constructors 
      Constructor Description
      SingleResourceReader​(java.io.Reader r)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.io.Reader getResourceReader​(java.lang.String source, java.lang.String encoding)  
      • Methods inherited from class org.apache.velocity.runtime.resource.loader.StringResourceLoader

        clearRepositories, createRepository, getLastModified, getRepository, getRepository, init, isSourceModified, removeRepository, resourceExists, setRepository
      • Methods inherited from class org.apache.velocity.runtime.resource.loader.ResourceLoader

        buildReader, commonInit, getClassName, getModificationCheckInterval, isCachingOn, setCachingOn, setModificationCheckInterval
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • reader

        private java.io.Reader reader
    • Constructor Detail

      • SingleResourceReader

        public SingleResourceReader​(java.io.Reader r)
    • Method Detail

      • getResourceReader

        public java.io.Reader getResourceReader​(java.lang.String source,
                                                java.lang.String encoding)
                                         throws org.apache.velocity.exception.ResourceNotFoundException
        Overrides:
        getResourceReader in class org.apache.velocity.runtime.resource.loader.StringResourceLoader
        Throws:
        org.apache.velocity.exception.ResourceNotFoundException