Class ResourceUtil

java.lang.Object
com.itextpdf.io.util.ResourceUtil

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

    • ResourceUtil

      private ResourceUtil()
  • Method Details

    • getResourceStream

      public static InputStream getResourceStream(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 InputStream getResourceStream(String key, 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.