TagSoupDocumentParser

public final class TagSoupDocumentParser
extends Object

java.lang.Object
   ↳ androidx.test.espresso.web.assertion.TagSoupDocumentParser


Uses TagSoup to parse html into Documents.

Summary

Public methods

static TagSoupDocumentParser newInstance()
Document parse(String html)

Parses the given html into an Document.

Inherited methods

Public methods

newInstance

public static TagSoupDocumentParser newInstance ()

Returns
TagSoupDocumentParser

Throws
SAXNotRecognizedException
SAXNotSupportedException

parse

public Document parse (String html)

Parses the given html into an Document.

Parameters
html String

Returns
Document

Throws
SAXException
IOException