Class ResourceUtils


  • public class ResourceUtils
    extends Object
    Author:
    pthomas3
    • Method Detail

      • getFileRelativeTo

        public static File getFileRelativeTo​(Class clazz,
                                             String path)
      • getPathContaining

        public static Path getPathContaining​(Class clazz)
      • getDirContaining

        public static File getDirContaining​(Class clazz)
      • toPathFromClassPathRoot

        public static String toPathFromClassPathRoot​(Class clazz)
      • removePrefix

        protected static String removePrefix​(String text)
      • getParentPath

        public static String getParentPath​(String relativePath)
      • classPathResourceToStream

        public static InputStream classPathResourceToStream​(String path)
      • classPathResourceToString

        public static String classPathResourceToString​(String path)
      • classPathToFile

        public static File classPathToFile​(String path)
      • classPathOrFile

        public static File classPathOrFile​(String path)