Class ClassLoaderFile
java.lang.Object
org.springframework.boot.devtools.restart.classloader.ClassLoaderFile
- All Implemented Interfaces:
- 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.- Since:
- 1.3.0
- Author:
- Phillip Webb
- See Also:
- 
Nested Class SummaryNested Classes
- 
Constructor SummaryConstructorsConstructorDescriptionClassLoaderFile(ClassLoaderFile.Kind kind, byte[] contents) Create a newClassLoaderFileinstance.ClassLoaderFile(ClassLoaderFile.Kind kind, long lastModified, byte[] contents) Create a newClassLoaderFileinstance.
- 
Method SummaryModifier and TypeMethodDescriptionbyte[]Return the contents of the file as a byte array ornullifgetKind()isClassLoaderFile.Kind.DELETED.getKind()Return the fileClassLoaderFile.Kind(added, modified, deleted).longReturn the time that the file was last modified.
- 
Constructor Details- 
ClassLoaderFileCreate a newClassLoaderFileinstance.- Parameters:
- kind- the kind of file
- contents- the file contents
 
- 
ClassLoaderFileCreate a newClassLoaderFileinstance.- Parameters:
- kind- the kind of file
- lastModified- the last modified time
- contents- the file contents
 
 
- 
- 
Method Details- 
getKindReturn the fileClassLoaderFile.Kind(added, modified, deleted).- Returns:
- the kind
 
- 
getLastModifiedpublic long getLastModified()Return the time that the file was last modified.- Returns:
- the last modified time
 
- 
getContentspublic byte[] getContents()Return the contents of the file as a byte array ornullifgetKind()isClassLoaderFile.Kind.DELETED.- Returns:
- the contents or null
 
 
-