Class ClassUtils

  • public class ClassUtils
    extends Object
    A utility class to assist with loading classes or resources by name. Many application servers use custom classloaders, which will break uses of:
    This utility attempts to load the class or resource using a number of different mechanisms to work around this problem.
    Matt Tucker
    • Method Detail

      • getResourceAsStream

        public static InputStream getResourceAsStream​(String name)
        Loads the given resource as a stream.
        name - the name of the resource that exists in the classpath.
        the resource as an input stream or null if the resource was not found.