[android-components](../../index.md) / [mozilla.components.browser.search](../index.md) / [SearchEngineParser](index.md) / [load](./load.md)

# load

`fun load(assetManager: `[`AssetManager`](https://developer.android.com/reference/android/content/res/AssetManager.html)`, identifier: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`, path: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`): `[`SearchEngine`](../-search-engine/index.md) [(source)](https://github.com/mozilla-mobile/android-components/blob/master/components/browser/search/src/main/java/mozilla/components/browser/search/SearchEngineParser.kt#L49)

Loads a SearchEngine from the given path in assets and assigns
it the given identifier.

`fun load(identifier: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`, stream: `[`InputStream`](https://developer.android.com/reference/java/io/InputStream.html)`): `[`SearchEngine`](../-search-engine/index.md) [(source)](https://github.com/mozilla-mobile/android-components/blob/master/components/browser/search/src/main/java/mozilla/components/browser/search/SearchEngineParser.kt#L62)

Loads a SearchEngine from the given stream and assigns it the given
identifier.

