get Resource Stream Nullable
fun getResourceStreamNullable(resourcePath: String, caller: Class<*> = PolyUI::class.java): InputStream?
return a stream of the given resource, or null.
Parameters
resource Path
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.