|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectcn.dreampie.resource.FileResource
public class FileResource
File based implementation of Resource.
| 构造方法摘要 | |
|---|---|
FileResource(File file)
|
|
| 方法摘要 | |
|---|---|
Resource |
createRelative(String relativePath)
Creates relative resource for current resource. |
boolean |
exists()
Tests if resource exists. |
InputStream |
getInputStream()
Returns resource input stream. |
String |
getName()
Returns a unique name for this resource. |
long |
lastModified()
Returns the time that the LESS source was last modified. |
String |
toString()
|
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| 构造方法详细信息 |
|---|
public FileResource(File file)
| 方法详细信息 |
|---|
public boolean exists()
Resource 复制的描述
Resource 中的 exists
public InputStream getInputStream()
throws IOException
Resource 复制的描述
Resource 中的 getInputStreamIOExceptionpublic long lastModified()
Resource 复制的描述
Resource 中的 lastModifiedlong value representing the time the resource was last modified, measured in milliseconds
since the epoch (00:00:00 GMT, January 1, 1970).public Resource createRelative(String relativePath)
Resource 复制的描述
Resource 中的 createRelativerelativePath - String relative resource path
public String toString()
Object 中的 toStringpublic String getName()
Resource 复制的描述
Resource 中的 getName
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||