Class ClassResourceLoader

java.lang.Object
org.adempiere.report.jasper.ClassResourceLoader

public class ClassResourceLoader extends Object
Get report resources from class path
Author:
hengsin
  • Constructor Details

    • ClassResourceLoader

      public ClassResourceLoader(String destinationFolder)
      Parameters:
      destinationFolder -
  • Method Details

    • getResource

      public Object getResource(String path)
      Parameters:
      path -
      Returns:
      File or URL
    • getResourceBundle

      public URL getResourceBundle(String bundleName, Language currLang)
      Get property resource file from resources
      Parameters:
      bundleName -
      currLang -
      Returns:
      URL
    • getSubreports

      public File[] getSubreports(String path)
      Parameters:
      path - The full path to the parent report
      Returns:
      File[0]
    • getRelatedResourcesPath

      public String getRelatedResourcesPath()
      Returns:
      url path to load subreports, images and resource bundle
    • isClassResourcePath

      public static boolean isClassResourcePath(String path)
      Parameters:
      path -
      Returns:
      true if path is "resource:*"