|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectcn.dreampie.resource.LessSource
public class LessSource
Represents the metadata and content of a LESS source.
| 构造方法摘要 | |
|---|---|
LessSource(File input)
Simple helper method to handle simple files. |
|
LessSource(Resource resource)
Constructs a new LessSource. |
|
LessSource(Resource resource,
Charset charset)
Constructs a new LessSource. |
|
| 方法摘要 | |
|---|---|
String |
getAbsolutePath()
Returns the absolute pathname of the LESS source. |
String |
getContent()
Returns the content of the LESS source. |
Map<String,LessSource> |
getImports()
Returns the LESS sources imported by this LESS source. |
long |
getLastModified()
Returns the time that the LESS source was last modified. |
long |
getLastModifiedIncludingImports()
Returns the time that the LESS source, or one of its imports, was last modified. |
String |
getName()
|
String |
getNormalizedContent()
Returns the normalized content of the LESS source. |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 构造方法详细信息 |
|---|
public LessSource(Resource resource)
throws IOException
LessSource.
This will read the metadata and content of the LESS source, and will automatically resolve the imports.
The resource is read using the default Charset of the platform
resource - The File reference to the LESS source to read.
FileNotFoundException - If the LESS source (or one of its imports) could not be found.
IOException - If the LESS source cannot be read.
public LessSource(Resource resource,
Charset charset)
throws IOException
LessSource.
This will read the metadata and content of the LESS resource, and will automatically resolve the imports.
resource - The File reference to the LESS resource to read.charset - charset used to read the less resource.
FileNotFoundException - If the LESS resource (or one of its imports) could not be found.
IOException - If the LESS resource cannot be read.
public LessSource(File input)
throws IOException
input - a File to use as input.
IOException| 方法详细信息 |
|---|
public String getAbsolutePath()
public String getContent()
public String getNormalizedContent()
The normalized content represents the LESS source as a flattened source where import statements have been resolved and replaced by the actual content.
public long getLastModified()
long value representing the time the resource was last modified, measured in milliseconds since the epoch (00:00:00 GMT, January 1, 1970).public long getLastModifiedIncludingImports()
long value representing the time the resource was last modified, measured in milliseconds since the epoch (00:00:00 GMT, January 1, 1970).public Map<String,LessSource> getImports()
The returned imports are represented by a
Map<String, LessSource> which contains the filename and the
LessSource.
public String getName()
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||