Partager via


ClassLoader.GetSystemResourceAsStream(String) Method

Definition

Open for reading, a resource of the specified name from the search path used to load classes.

[Android.Runtime.Register("getSystemResourceAsStream", "(Ljava/lang/String;)Ljava/io/InputStream;", "")]
public static System.IO.Stream? GetSystemResourceAsStream (string? name);
[<Android.Runtime.Register("getSystemResourceAsStream", "(Ljava/lang/String;)Ljava/io/InputStream;", "")>]
static member GetSystemResourceAsStream : string -> System.IO.Stream

Parameters

name
String

The resource name

Returns

An input stream for reading the resource, or null if the resource could not be found

Attributes

Remarks

Open for reading, a resource of the specified name from the search path used to load classes. This method locates the resource through the system class loader (see #getSystemClassLoader()).

Added in 1.1.

Java documentation for java.lang.ClassLoader.getSystemResourceAsStream(java.lang.String).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

See also