public class FileObjectResourceLoader extends AbstractResourceLoader<FileObject>
Constructor and Description |
---|
FileObjectResourceLoader() |
FileObjectResourceLoader(String templateExtName,
String layoutExtName,
String macroLibraryExtName) |
Modifier and Type | Method and Description |
---|---|
Template |
createTemplate(FileObject fileObject)
创建并注册模板
|
FileResourceManager |
getFileResourceManager() |
String |
getResourceContent(String path,
String encode)
获取资源对应的文本
|
boolean |
isModified(String path)
确定某个路径对应的文件是否被修改
|
protected Template |
loadTemplateItem(String path) |
void |
resetModified(String path)
清置修改状态
|
void |
setFileResourceManager(FileResourceManager fileResourceManager) |
addTemplate, getClassLoader, getLayout, getLayoutExtName, getLayoutPath, getMacroLibrary, getMacroLibraryExtName, getTemplate, getTemplateEngine, getTemplateExtName, isLayout, isLoadResource, isMacroLibrary, isTemplate, setClassLoader, setLayoutExtName, setMacroLibraryExtName, setTemplateEngine, setTemplateExtName
public FileResourceManager getFileResourceManager()
public void setFileResourceManager(FileResourceManager fileResourceManager)
public Template createTemplate(FileObject fileObject) throws TemplateException
ResourceLoader
TemplateException
protected Template loadTemplateItem(String path) throws TemplateException
loadTemplateItem
in class AbstractResourceLoader<FileObject>
TemplateException
public boolean isModified(String path)
ResourceLoader
public void resetModified(String path)
ResourceLoader
public String getResourceContent(String path, String encode) throws TemplateException
ResourceLoader
TemplateException
Copyright © 2006–2018 TinyGroup. All rights reserved.