parseXml

open fun parseXml(inputStream: InputStream, encoding: String): TTMLDocument

Parses the given java.io.InputStream using the specified encoding.

Return

a parsed com.brightcove.player.model.TTMLDocument

Parameters

inputStream

the stream containing the content to parse

encoding

the character encoding

Throws

org.xmlpull.v1.XmlPullParserException

open fun parseXml(reader: Reader): TTMLDocument

Parses the given java.io.Reader into a com.brightcove.player.model.TTMLDocument.

Return

a parsed com.brightcove.player.model.TTMLDocument

Parameters

reader

the reader containing the content to parse

Throws

org.xmlpull.v1.XmlPullParserException