Class ResourceUtils

  • All Implemented Interfaces:
    io.microsphere.util.Utils

    public abstract class ResourceUtils
    extends java.lang.Object
    implements io.microsphere.util.Utils
    The utilities class for Resource
    Since:
    1.0.0
    Author:
    Mercy
    See Also:
    Resource
    • 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 specified Resource is a file based Resource
      static boolean isFileUrlResource​(org.springframework.core.io.Resource resource)
      Determine whether the specified Resource is a FileUrlResource
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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
        The Class of FileUrlResource
        Since:
        Spring Framework 5.0.2
    • Method Detail

      • isFileUrlResource

        public static boolean isFileUrlResource​(org.springframework.core.io.Resource resource)
        Determine whether the specified Resource is a FileUrlResource
        Parameters:
        resource - Resource
        Returns:
        true if the specified Resource is a FileUrlResource
      • isFileBasedResource

        public static boolean isFileBasedResource​(org.springframework.core.io.Resource resource)
        Determine whether the specified Resource is a file based Resource
        Parameters:
        resource - Resource
        Returns:
        true if the specified Resource is a file system based Resource