Package org.splevo.jamopp.extraction
Class FileResourceHandling
java.lang.Object
org.splevo.jamopp.extraction.FileResourceHandling
Utility class for handling of file-based resources.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumOptions for the resource handling. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FilegetPhysicalFilePath(URI resourceURI, ResourceSet rs) Determines the physical path of the givenURIwith respect to the givenResourceSet.static FileDetermines the physical path of the given resource.static booleanDetermines if platform resources shall be used in the givenResourceSet.
-
Constructor Details
-
FileResourceHandling
public FileResourceHandling()
-
-
Method Details
-
usePlatformResource
Determines if platform resources shall be used in the givenResourceSet.- Parameters:
rs- The resource set to be checked.- Returns:
- True if platform resources shall be used.
-
getPhysicalFilePath
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
Determines the physical path of the givenURIwith respect to the givenResourceSet.- 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.
-