getResourceStreamNullable

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

return a stream of the given resource, or null.

Parameters

resourcePath

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

See also

Throws

if an IO error occurs.