|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.abstracthorizon.danube.freemarker.FreeMarkerViewAdapter.LocalTemplateLoader
public class FreeMarkerViewAdapter.LocalTemplateLoader
Local template loader that uses templates path or templates URL (which ever is supplied). Templates path has advantage against URL.
| Constructor Summary | |
|---|---|
FreeMarkerViewAdapter.LocalTemplateLoader()
Constructor |
|
| Method Summary | |
|---|---|
void |
closeTemplateSource(Object tmp)
This method does nothing |
Object |
findTemplateSource(String path)
This method returns a file or an URL if file is not available and URL's input stream can be accessed (it tries to read ONE byte of it). |
long |
getLastModified(Object tmp)
This method returns file's last modified attribute if file is supplied. |
Reader |
getReader(Object tmp,
String encoding)
Returns an reader from file or URL or null if that fails |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FreeMarkerViewAdapter.LocalTemplateLoader()
| Method Detail |
|---|
public void closeTemplateSource(Object tmp)
throws IOException
closeTemplateSource in interface TemplateLoadertmp - template resource
IOException
public Object findTemplateSource(String path)
throws IOException
findTemplateSource in interface TemplateLoaderpath - path to resource
null
IOExceptionpublic long getLastModified(Object tmp)
getLastModified in interface TemplateLoadertmp - resource which has to be a file or URL.
public Reader getReader(Object tmp,
String encoding)
throws IOException
null if that fails
getReader in interface TemplateLoadertmp - file or URLencoding - encoding
null
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||