Package org.restheart.utils
Class ResourcesExtractor
java.lang.Object
org.restheart.utils.ResourcesExtractor
- Author:
- Andrea Di Cesare <andrea@softinstigate.com>
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ResourcesExtractor
public ResourcesExtractor()
-
-
Method Details
-
isResourceInJar
- Parameters:
clazz- the class to get the classloader fromresourcePath-- Returns:
- Throws:
URISyntaxException
-
deleteTempDir
public static void deleteTempDir(Class clazz, String resourcePath, File tempDir) throws URISyntaxException, IOException - Parameters:
clazz- the class to get the classloader fromresourcePath-tempDir-- Throws:
URISyntaxExceptionIOException
-
extract
public static File extract(Class clazz, String resourcePath) throws IOException, URISyntaxException, IllegalStateException - Parameters:
resourcePath-- Returns:
- Throws:
IOExceptionURISyntaxExceptionIllegalStateException
-