Class FileSystemResolver

  • All Implemented Interfaces:
    MustacheResolver

    public class FileSystemResolver
    extends java.lang.Object
    implements MustacheResolver
    MustacheResolver implementation that resolves mustache files from the filesystem.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.io.File fileRoot  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.io.Reader getReader​(java.lang.String resourceName)  
      • Methods inherited from class java.lang.Object

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

      • fileRoot

        private final java.io.File fileRoot
    • Constructor Detail

      • FileSystemResolver

        public FileSystemResolver()
      • FileSystemResolver

        public FileSystemResolver​(java.io.File fileRoot)
        Use the file system to resolve mustache templates.
        Parameters:
        fileRoot - where in the file system to find the templates
    • Method Detail

      • getReader

        public java.io.Reader getReader​(java.lang.String resourceName)
        Specified by:
        getReader in interface MustacheResolver