android-components / mozilla.components.browser.search / SearchEngineParser

SearchEngineParser

class SearchEngineParser (source)

A very simple parser for search plugins.

Constructors

Name Summary
<init> SearchEngineParser()
A very simple parser for search plugins.

Functions

Name Summary
load fun load(assetManager: <ERROR CLASS>, identifier: String, path: String): SearchEngine
Loads a SearchEngine from the given path in assets and assigns it the given identifier.fun load(identifier: String, stream: InputStream): SearchEngine
Loads a SearchEngine from the given stream and assigns it the given identifier.

Extension Functions

Name Summary
loadResourceAsString fun Any.loadResourceAsString(path: String): String
Loads a file from the resources folder and returns its content as a string object.