Class FileResourceHandling

java.lang.Object
org.splevo.jamopp.extraction.FileResourceHandling

public class FileResourceHandling extends Object
Utility class for handling of file-based resources.
  • Constructor Details

    • FileResourceHandling

      public FileResourceHandling()
  • Method Details

    • usePlatformResource

      public static boolean usePlatformResource(ResourceSet rs)
      Determines if platform resources shall be used in the given ResourceSet.
      Parameters:
      rs - The resource set to be checked.
      Returns:
      True if platform resources shall be used.
    • getPhysicalFilePath

      public static File getPhysicalFilePath(Resource r)
      Determines the physical path of the given resource.
      Parameters:
      r - The resource to check.
      Returns:
      The file object representing the physical path of the resource.
    • getPhysicalFilePath

      public static File getPhysicalFilePath(URI resourceURI, ResourceSet rs)
      Determines the physical path of the given URI with respect to the given ResourceSet.
      Parameters:
      resourceURI - The resource URI to check.
      rs - The resource set to be used.
      Returns:
      The file object representing the physical path of the resource.