Package org.revapi.reporter.text
Class NaiveFileTemplateLoader
- java.lang.Object
-
- org.revapi.reporter.text.NaiveFileTemplateLoader
-
- All Implemented Interfaces:
freemarker.cache.TemplateLoader
public class NaiveFileTemplateLoader extends Object implements freemarker.cache.TemplateLoader
A naive file template loader for FreeMarker that doesn't impose any security restrictions as the FreeMarker's ownFileTemplateLoader
does.- Since:
- 0.5.0
- Author:
- Lukas Krejci
-
-
Constructor Summary
Constructors Constructor Description NaiveFileTemplateLoader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
closeTemplateSource(Object templateSource)
Object
findTemplateSource(String name)
long
getLastModified(Object templateSource)
Reader
getReader(Object templateSource, String encoding)
-
-
-
Method Detail
-
findTemplateSource
public Object findTemplateSource(String name) throws IOException
- Specified by:
findTemplateSource
in interfacefreemarker.cache.TemplateLoader
- Throws:
IOException
-
getLastModified
public long getLastModified(Object templateSource)
- Specified by:
getLastModified
in interfacefreemarker.cache.TemplateLoader
-
getReader
public Reader getReader(Object templateSource, String encoding) throws IOException
- Specified by:
getReader
in interfacefreemarker.cache.TemplateLoader
- Throws:
IOException
-
closeTemplateSource
public void closeTemplateSource(Object templateSource) throws IOException
- Specified by:
closeTemplateSource
in interfacefreemarker.cache.TemplateLoader
- Throws:
IOException
-
-