getResourceStream

fun getResourceStream(resourcePath: String, caller: Class<*> = PolyUI::class.java): InputStream

return a stream of the given resource or throws an exception.

Parameters

resourcePath

the path to the resource. Can either be a valid URL (including file URL), or a resource path.

See also

Throws

if an IO error occurs.

if the URL is invalid and/or the resource is not found