Class VelocityFileResourceLoader


  • public class VelocityFileResourceLoader
    extends org.apache.velocity.runtime.resource.loader.FileResourceLoader
    Author:
    Jorge Campins
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  VelocityFileResourceLoader.IndentationFilterInputStream
      Upgrading from Velocity 2.0 to Velocity 2.1 (https://velocity.apache.org/engine/2.1/upgrading.html) The ResourceLoader class API has replaced InputStream getters by Reader getters: InputStream ResourceLoader.getResourceStream(String name) has been replaced by a Reader ResourceLoader.getResourceReader(String name, String encoding).
    • Field Summary

      • Fields inherited from class org.apache.velocity.runtime.resource.loader.ResourceLoader

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.io.InputStream getResourceStream​(java.lang.String name)  
      • Methods inherited from class org.apache.velocity.runtime.resource.loader.FileResourceLoader

        getLastModified, init, isSourceModified, resourceExists
      • Methods inherited from class org.apache.velocity.runtime.resource.loader.ResourceLoader

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

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

      • VelocityFileResourceLoader

        public VelocityFileResourceLoader()
    • Method Detail

      • getResourceStream

        public java.io.InputStream getResourceStream​(java.lang.String name)
        Overrides:
        getResourceStream in class org.apache.velocity.runtime.resource.loader.FileResourceLoader