Class ClassUtilsExtensions


  • public final class ClassUtilsExtensions
    extends org.apache.commons.lang3.ClassUtils
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.apache.commons.lang3.ClassUtils

        org.apache.commons.lang3.ClassUtils.Interfaces
    • Field Summary

      • Fields inherited from class org.apache.commons.lang3.ClassUtils

        INNER_CLASS_SEPARATOR, INNER_CLASS_SEPARATOR_CHAR, PACKAGE_SEPARATOR, PACKAGE_SEPARATOR_CHAR
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static InputStream getRelativeResourceAsStream​(Class<?> clazz, String resourceName)
      Retrieves a resource relative to specified class.
      • Methods inherited from class org.apache.commons.lang3.ClassUtils

        comparator, convertClassesToClassNames, convertClassNamesToClasses, getAbbreviatedName, getAbbreviatedName, getAllInterfaces, getAllSuperclasses, getCanonicalName, getCanonicalName, getCanonicalName, getCanonicalName, getClass, getClass, getClass, getClass, getComponentType, getName, getName, getName, getName, getPackageCanonicalName, getPackageCanonicalName, getPackageCanonicalName, getPackageName, getPackageName, getPackageName, getPublicMethod, getShortCanonicalName, getShortCanonicalName, getShortCanonicalName, getShortClassName, getShortClassName, getShortClassName, getSimpleName, getSimpleName, getSimpleName, getSimpleName, hierarchy, hierarchy, isAssignable, isAssignable, isAssignable, isAssignable, isInnerClass, isPrimitiveOrWrapper, isPrimitiveWrapper, isPublic, primitivesToWrappers, primitiveToWrapper, toClass, wrappersToPrimitives, wrapperToPrimitive
    • Method Detail

      • getRelativeResourceAsStream

        public static InputStream getRelativeResourceAsStream​(Class<?> clazz,
                                                              String resourceName)
        Retrieves a resource relative to specified class.
        Parameters:
        clazz - the class from which the relative look-up should work
        resourceName - the resource name to look-up for
        Returns:
        the resource as an input stream
        Throws:
        IllegalArgumentException - if the resource was not found
        NullPointerException - if the resource name is null