Package org.symphonyoss.s2.canon.parser
Class MultiDirTemplateLoader
- java.lang.Object
-
- org.symphonyoss.s2.canon.parser.MultiDirTemplateLoader
-
- All Implemented Interfaces:
freemarker.cache.TemplateLoader
public class MultiDirTemplateLoader extends Object implements freemarker.cache.TemplateLoader
-
-
Constructor Summary
Constructors Constructor Description MultiDirTemplateLoader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddTemplateDirectory(File dir)voidcloseTemplateSource(Object templateSource)ObjectfindTemplateSource(String name)longgetLastModified(Object templateSource)ReadergetReader(Object templateSource, String encoding)Set<String>getTemplatesFor(String templateOrProforma, String language, String type)
-
-
-
Method Detail
-
findTemplateSource
public Object findTemplateSource(String name) throws IOException
- Specified by:
findTemplateSourcein interfacefreemarker.cache.TemplateLoader- Throws:
IOException
-
getLastModified
public long getLastModified(Object templateSource)
- Specified by:
getLastModifiedin interfacefreemarker.cache.TemplateLoader
-
getReader
public Reader getReader(Object templateSource, String encoding) throws IOException
- Specified by:
getReaderin interfacefreemarker.cache.TemplateLoader- Throws:
IOException
-
closeTemplateSource
public void closeTemplateSource(Object templateSource) throws IOException
- Specified by:
closeTemplateSourcein interfacefreemarker.cache.TemplateLoader- Throws:
IOException
-
addTemplateDirectory
public void addTemplateDirectory(File dir) throws IOException
- Throws:
IOException
-
-