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
Modifier and TypeClassDescriptionstatic enum
Options for the resource handling. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic File
getPhysicalFilePath
(URI resourceURI, ResourceSet rs) Determines the physical path of the givenURI
with respect to the givenResourceSet
.static File
Determines the physical path of the given resource.static boolean
Determines 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 givenURI
with 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.
-