getResourceFileCopy

open fun getResourceFileCopy(pathname: String): File

Method to get a copy of a resource file

Return

a copy of a resource file as File

Parameters

pathname

: the pathname of the resource to get

Throws

when an error occurred during the fetching of the resource


open fun <T> getResourceFileCopy(pathname: String, context: Class<T>): File

Method to get a copy of a resource file

Return

a copy of a resource file as File

Parameters

pathname

: the pathname of the resource to get

context

: the context class from get its classloader to reach the resources folder

<T>

the class type of the context e.g. MyCallingClass.class

Throws

when an error occurred during the fetching of the resource