Class ResourceUtil


  • public final class ResourceUtil
    extends java.lang.Object
    This file is a helper class for internal usage only. Be aware that its API and functionality may be changed in future.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private ResourceUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.io.InputStream getResourceStream​(java.lang.String key)
      Gets the resource's inputstream.
      static java.io.InputStream getResourceStream​(java.lang.String key, java.lang.ClassLoader loader)
      Gets the resource's inputstream.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ResourceUtil

        private ResourceUtil()
    • Method Detail

      • getResourceStream

        public static java.io.InputStream getResourceStream​(java.lang.String key)
        Gets the resource's inputstream.
        Parameters:
        key - the full name of the resource.
        Returns:
        the InputStream to get the resource or null if not found.
      • getResourceStream

        public static java.io.InputStream getResourceStream​(java.lang.String key,
                                                            java.lang.ClassLoader loader)
        Gets the resource's inputstream.
        Parameters:
        key - the full name of the resource.
        loader - the ClassLoader to load the resource or null to try the ones available.
        Returns:
        the InputStream to get the resource or null if not found.