Package io.microsphere.spring.core.io
Class ResourceUtils
- java.lang.Object
-
- io.microsphere.spring.core.io.ResourceUtils
-
- All Implemented Interfaces:
io.microsphere.util.Utils
public abstract class ResourceUtils extends java.lang.Object implements io.microsphere.util.UtilsThe utilities class forResource- Since:
- 1.0.0
- Author:
- Mercy
- See Also:
Resource
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.ClassFILE_URL_RESOURCE_CLASSTheClassof FileUrlResourcestatic java.lang.StringFILE_URL_RESOURCE_CLASS_NAMEThe class name of FileUrlResource
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanisFileBasedResource(org.springframework.core.io.Resource resource)Determine whether the specifiedResourceis a file basedResourcestatic booleanisFileUrlResource(org.springframework.core.io.Resource resource)Determine whether the specifiedResourceis a FileUrlResource
-
-
-
Field Detail
-
FILE_URL_RESOURCE_CLASS_NAME
public static final java.lang.String FILE_URL_RESOURCE_CLASS_NAME
The class name of FileUrlResource- Since:
- Spring Framework 5.0.2
- See Also:
- Constant Field Values
-
FILE_URL_RESOURCE_CLASS
public static final java.lang.Class FILE_URL_RESOURCE_CLASS
TheClassof FileUrlResource- Since:
- Spring Framework 5.0.2
-
-
Method Detail
-
isFileUrlResource
public static boolean isFileUrlResource(org.springframework.core.io.Resource resource)
Determine whether the specifiedResourceis a FileUrlResource- Parameters:
resource-Resource- Returns:
trueif the specifiedResourceis a FileUrlResource
-
isFileBasedResource
public static boolean isFileBasedResource(org.springframework.core.io.Resource resource)
Determine whether the specifiedResourceis a file basedResource- Parameters:
resource-Resource- Returns:
trueif the specifiedResourceis a file system basedResource
-
-