public final class LoadHTMLParams
extends java.lang.Object
Browser.loadHTML(LoadHTMLParams) method.
| Constructor and Description |
|---|
LoadHTMLParams(java.lang.String html, java.lang.String textEncoding, java.lang.String baseURL)
Constructs a new
LoadHTMLParams instance.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getBaseURL()
Returns origin URL of the document that will be used to resolve links with relative path in HTML document.
返回文档的原始URL,该URL将用于解析HTML文档中具有相对路径的链接。 |
java.lang.String |
getHTML()
Returns a string that represents HTML content.
返回表示HTML内容的字符串。 |
java.lang.String |
getTextEncoding()
Returns a string that represents encoding of the HTML content.
返回一个表示HTML内容编码的字符串。 |
java.lang.String |
toString() |
public LoadHTMLParams(java.lang.String html,
java.lang.String textEncoding,
java.lang.String baseURL)
LoadHTMLParams instance.
html - a string that represent a new HTML to be set. Cannot be
null.
-表示要设置的新HTML的字符串。不可能是 。
textEncoding - encoding of the
html text. E.g. "UTF-8".
-文本编码。例如。 “UTF-8”。
baseURL - indicates the origin URL of the document and it's used to resolve links.
-表示文档的原始URL,用于解析链接。
java.lang.IllegalArgumentException - when when
html is
null or empty.
public java.lang.String getHTML()
public java.lang.String getTextEncoding()
public java.lang.String getBaseURL()
public java.lang.String toString()
toString in class
java.lang.Object