load

abstract fun load(resourcePath: String): InputStream?

Loads a resource from the specified resource path and returns it as an input stream.

Return

An input stream representing the loaded resource, or null if the resource is not found.

Parameters

resourcePath

The path to the resource to be loaded.

Throws

If an I/O error occurs during resource loading.