类 ClassLoaderFile
java.lang.Object
org.springframework.boot.devtools.restart.classloader.ClassLoaderFile
- 所有已实现的接口:
Serializable
A single file that may be served from a
ClassLoader
. Can be used to represent
files that have been added, modified or deleted since the original JAR was created.- 从以下版本开始:
- 1.3.0
- 作者:
- Phillip Webb
- 另请参阅:
-
嵌套类概要
嵌套类 -
构造器概要
构造器构造器说明ClassLoaderFile
(ClassLoaderFile.Kind kind, byte[] contents) Create a newClassLoaderFile
instance.ClassLoaderFile
(ClassLoaderFile.Kind kind, long lastModified, byte[] contents) Create a newClassLoaderFile
instance. -
方法概要
修饰符和类型方法说明byte[]
Return the contents of the file as a byte array ornull
ifgetKind()
isClassLoaderFile.Kind.DELETED
.getKind()
Return the fileClassLoaderFile.Kind
(added, modified, deleted).long
Return the time that the file was last modified.
-
构造器详细资料
-
ClassLoaderFile
Create a newClassLoaderFile
instance.- 参数:
kind
- the kind of filecontents
- the file contents
-
ClassLoaderFile
Create a newClassLoaderFile
instance.- 参数:
kind
- the kind of filelastModified
- the last modified timecontents
- the file contents
-
-
方法详细资料
-
getKind
Return the fileClassLoaderFile.Kind
(added, modified, deleted).- 返回:
- the kind
-
getLastModified
public long getLastModified()Return the time that the file was last modified.- 返回:
- the last modified time
-
getContents
public byte[] getContents()Return the contents of the file as a byte array ornull
ifgetKind()
isClassLoaderFile.Kind.DELETED
.- 返回:
- the contents or
null
-