类 ResourceHelper


  • public class ResourceHelper
    extends java.lang.Object
    作者:
    BiJi'an
    Description:
    Date:
    2022/1/1
    • 构造器详细资料

      • ResourceHelper

        public ResourceHelper()
    • 方法详细资料

      • getInputStream

        public static java.io.InputStream getInputStream​(java.lang.String path)
        参数:
        path - path
        返回:
        java.io.InputStream
        Description:
        Date:
        2023-03-19 00:37
        Title:
        getInputStream
      • getInputStream

        public static java.io.InputStream getInputStream​(java.lang.String path,
                                                         boolean required)
        参数:
        path - path
        required - required
        返回:
        java.io.InputStream
        Description:
        Date:
        2023-03-19 15:22
        Title:
        getInputStream
      • getInputStream

        public static java.io.InputStream getInputStream​(java.lang.String path,
                                                         ResourceHelper.PathType priorityType)
        参数:
        path - path
        priorityType - priorityType
        返回:
        java.io.InputStream
        Description:
        Date:
        2023-03-19 14:55
        Title:
        getInputStream
      • getInputStream

        public static java.io.InputStream getInputStream​(java.lang.String path,
                                                         ResourceHelper.PathType priorityType,
                                                         boolean required)
        参数:
        path - path
        返回:
        java.io.InputStream
        Description:
        Date:
        2022-01-01 02:11
        Title:
        getInputStream
      • getInputStreamInClassPath

        public static java.io.InputStream getInputStreamInClassPath​(java.lang.String classPath)
        参数:
        classPath - the path
        返回:
        java.io.InputStream
        Description:
        Date:
        2022-01-01 02:10
        Title:
        getInputStreamInClassPath
      • getFile

        public static java.io.File getFile​(java.lang.String path)
        参数:
        path - path
        返回:
        java.io.File
        Description:
        Date:
        2022-11-23 15:17
        Title:
        getFile
      • getFile

        public static java.io.File getFile​(java.lang.String path,
                                           boolean required)
        参数:
        path - path
        required - required
        返回:
        java.io.File
        Description:
        Date:
        2023-02-26 17:46
        Title:
        getFile
      • getFile

        public static java.io.File getFile​(java.lang.String path,
                                           ResourceHelper.PathType priorityType)
        参数:
        path - path
        priorityType - priorityType
        返回:
        java.io.File
        Description:
        Date:
        2023-02-26 17:45
        Title:
        getFile
      • getFile

        public static java.io.File getFile​(java.lang.String path,
                                           ResourceHelper.PathType priorityType,
                                           boolean required)
        参数:
        path - path
        priorityType - priorityType
        required - required
        返回:
        java.io.File
        Description:
        Date:
        2023-02-26 17:46
        Title:
        getFile
      • getDir

        public static java.io.File getDir​(java.lang.String path)
        参数:
        path - path
        返回:
        java.io.File
        Description:
        Date:
        2023-02-26 17:39
        Title:
        getDir
      • getDir

        public static java.io.File getDir​(java.lang.String path,
                                          boolean required)
        参数:
        path - path
        返回:
        java.io.File
        Description:
        Date:
        2022-11-23 15:17
        Title:
        getDir
      • getDir

        public static java.io.File getDir​(java.lang.String path,
                                          ResourceHelper.PathType priorityType)
        参数:
        path - path
        priorityType - priorityType
        返回:
        java.io.File
        Description:
        Date:
        2023-02-26 17:44
        Title:
        getDir
      • getDir

        public static java.io.File getDir​(java.lang.String path,
                                          ResourceHelper.PathType priorityType,
                                          boolean required)
        参数:
        path - path
        priorityType - priorityType
        返回:
        java.io.File
        Description:
        Date:
        2023-02-11 23:07
        Title:
        getDir
      • getFileInClassPath

        public static java.io.File getFileInClassPath​(java.lang.String classPath)
        参数:
        classPath - classPath
        返回:
        java.io.File
        Description:
        Date:
        2023-02-26 17:44
        Title:
        getFileInClassPath
      • getFileInClassPath

        public static java.io.File getFileInClassPath​(java.lang.String classPath,
                                                      boolean required)
        参数:
        classPath - classPath
        返回:
        java.io.File
        Description:
        Date:
        2022-01-01 02:12
        Title:
        getFileInClassPath
      • getDirInClassPath

        public static java.io.File getDirInClassPath​(java.lang.String classPath)
        参数:
        classPath - classPath
        返回:
        java.io.File
        Description:
        Date:
        2022-11-23 14:33
        Title:
        getDirInClassPath
      • getDirInClassPath

        public static java.io.File getDirInClassPath​(java.lang.String classPath,
                                                     boolean required)
        参数:
        classPath - classPath
        required - required
        返回:
        java.io.File
        Description:
        Date:
        2023-02-26 17:47
        Title:
        getDirInClassPath
      • getText

        public static java.lang.String getText​(java.lang.String path)
        参数:
        path - path
        返回:
        java.lang.String
        Description:
        Date:
        2023-02-19 19:09
        Title:
        getText
      • getText

        public static java.lang.String getText​(java.lang.String path,
                                               ResourceHelper.PathType priorityType)
        参数:
        path - path
        priorityType - priorityType
        返回:
        java.lang.String
        Description:
        Date:
        2023-02-19 19:08
        Title:
        getText
      • getText

        public static java.lang.String getText​(java.lang.String path,
                                               java.nio.charset.Charset charset)
        参数:
        path - path
        charset - charset
        返回:
        java.lang.String
        Description:
        Date:
        2023-02-19 19:10
        Title:
        getText
      • getText

        public static java.lang.String getText​(java.lang.String path,
                                               ResourceHelper.PathType priorityType,
                                               java.nio.charset.Charset charset)
        参数:
        path - path
        priorityType - priorityType
        charset - charset
        返回:
        java.lang.String
        Description:
        Date:
        2023-02-19 19:08
        Title:
        getText
      • readLines

        public static java.util.List<java.lang.String> readLines​(java.lang.String path)
        参数:
        path - path
        返回:
        java.lang.String
        Description:
        Date:
        2023-02-19 19:09
        Title:
        getText
      • readLines

        public static java.util.List<java.lang.String> readLines​(java.lang.String path,
                                                                 ResourceHelper.PathType priorityType)
        参数:
        path - path
        priorityType - priorityType
        返回:
        java.lang.String
        Description:
        Date:
        2023-02-19 19:08
        Title:
        getText
      • readLines

        public static java.util.List<java.lang.String> readLines​(java.lang.String path,
                                                                 java.nio.charset.Charset charset)
        参数:
        path - path
        charset - charset
        返回:
        java.lang.String
        Description:
        Date:
        2023-02-19 19:10
        Title:
        getText
      • readLines

        public static java.util.List<java.lang.String> readLines​(java.lang.String path,
                                                                 ResourceHelper.PathType priorityType,
                                                                 java.nio.charset.Charset charset)
        参数:
        path - path
        priorityType - priorityType
        charset - charset
        返回:
        java.lang.String
        Description:
        Date:
        2023-02-19 19:08
        Title:
        getText