| 构造器和说明 |
|---|
FileSource(String baseTemplatePath,
String fileName) |
FileSource(String baseTemplatePath,
String fileName,
String encoding) |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getCacheKey()
cache key used to cache, return null if do not cache the template
注意:如果不希望缓存从该 ISource 解析出来的 Template 对象
让 getCacheKey() 返回 null 值即可
|
StringBuilder |
getContent()
content of ISource
|
String |
getEncoding()
encoding of content
|
String |
getFileName() |
String |
getFinalFileName() |
boolean |
isModified()
reload template if modified on devMode
|
static StringBuilder |
loadFile(File file,
String encoding) |
String |
toString() |
public boolean isModified()
ISourceisModified 在接口中 ISourcepublic String getCacheKey()
ISourcegetCacheKey 在接口中 ISourcepublic String getEncoding()
ISourcegetEncoding 在接口中 ISourcepublic String getFinalFileName()
public String getFileName()
public StringBuilder getContent()
ISourcegetContent 在接口中 ISourcepublic static StringBuilder loadFile(File file, String encoding)
Copyright © 2024. All rights reserved.