Udostępnij za pośrednictwem


ResourceBundle.Control.ToResourceName(String, String) Method

Definition

Converts the given bundleName to the form required by the ClassLoader#getResource ClassLoader.getResource method by replacing all occurrences of '.' in bundleName with '/' and appending a '.' and the given file suffix.

[Android.Runtime.Register("toResourceName", "(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;", "")]
public string ToResourceName (string bundleName, string suffix);
[<Android.Runtime.Register("toResourceName", "(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;", "")>]
member this.ToResourceName : string * string -> string

Parameters

bundleName
String

the bundle name

suffix
String

the file type suffix

Returns

the converted resource name

Attributes

Remarks

Converts the given bundleName to the form required by the ClassLoader#getResource ClassLoader.getResource method by replacing all occurrences of '.' in bundleName with '/' and appending a '.' and the given file suffix. For example, if bundleName is "foo.bar.MyResources_ja_JP" and suffix is "properties", then "foo/bar/MyResources_ja_JP.properties" is returned.

Java documentation for java.util.ResourceBundle.Control.toResourceName(java.lang.String, 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