| 限定符和类型 | 字段和说明 |
|---|---|
protected ClassLoader |
classLoader |
protected String |
encoding |
protected String |
fileName |
protected String |
finalFileName |
protected boolean |
isInJar |
protected long |
lastModified |
protected URL |
url |
| 构造器和说明 |
|---|
ClassPathSource(String fileName)
Constructor for ClassPathSource.
|
ClassPathSource(String baseTemplatePath,
String fileName)
Constructor for ClassPathSource.
|
ClassPathSource(String baseTemplatePath,
String fileName,
String encoding)
Constructor for ClassPathSource.
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected String |
buildFinalFileName(String baseTemplatePath,
String fileName)
buildFinalFileName.
|
String |
getCacheKey()
getCacheKey.
|
protected ClassLoader |
getClassLoader()
Getter for the field
classLoader. |
StringBuilder |
getContent()
getContent.
|
String |
getEncoding()
Getter for the field
encoding. |
protected long |
getLastModified()
Getter for the field
lastModified. |
boolean |
isModified()
isModified.
|
static StringBuilder |
loadFile(InputStream inputStream,
String encoding)
loadFile.
|
protected void |
processIsInJarAndlastModified()
processIsInJarAndlastModified.
|
String |
toString()
toString.
|
protected String finalFileName
protected String fileName
protected String encoding
protected boolean isInJar
protected long lastModified
protected ClassLoader classLoader
protected URL url
public ClassPathSource(String fileName)
Constructor for ClassPathSource.
fileName - a String object.public ClassPathSource(String baseTemplatePath, String fileName)
Constructor for ClassPathSource.
protected void processIsInJarAndlastModified()
processIsInJarAndlastModified.
protected ClassLoader getClassLoader()
Getter for the field classLoader.
ClassLoader object.protected String buildFinalFileName(String baseTemplatePath, String fileName)
buildFinalFileName.
public String getCacheKey()
getCacheKey.
getCacheKey 在接口中 ISourceString object.public String getEncoding()
Getter for the field encoding.
getEncoding 在接口中 ISourceString object.protected long getLastModified()
Getter for the field lastModified.
public boolean isModified()
isModified.
isModified 在接口中 ISourcepublic StringBuilder getContent()
getContent.
getContent 在接口中 ISourceStringBuilder object.public static StringBuilder loadFile(InputStream inputStream, String encoding)
loadFile.
inputStream - a InputStream object.encoding - a String object.StringBuilder object.Copyright © 2023. All rights reserved.