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.Utils
The utilities class forResource
- Since:
- 1.0.0
- Author:
- Mercy
- See Also:
Resource
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.Class
FILE_URL_RESOURCE_CLASS
TheClass
of FileUrlResourcestatic java.lang.String
FILE_URL_RESOURCE_CLASS_NAME
The class name of FileUrlResource
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
isFileBasedResource(org.springframework.core.io.Resource resource)
Determine whether the specifiedResource
is a file basedResource
static boolean
isFileUrlResource(org.springframework.core.io.Resource resource)
Determine whether the specifiedResource
is 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
TheClass
of FileUrlResource- Since:
- Spring Framework 5.0.2
-
-
Method Detail
-
isFileUrlResource
public static boolean isFileUrlResource(org.springframework.core.io.Resource resource)
Determine whether the specifiedResource
is a FileUrlResource- Parameters:
resource
-Resource
- Returns:
true
if the specifiedResource
is a FileUrlResource
-
isFileBasedResource
public static boolean isFileBasedResource(org.springframework.core.io.Resource resource)
Determine whether the specifiedResource
is a file basedResource
- Parameters:
resource
-Resource
- Returns:
true
if the specifiedResource
is a file system basedResource
-
-