Skip to content

Commit bcfe415

Browse files
Bart SearsAndroid (Google) Code Review
authored andcommitted
Merge "Improve JavaDoc for WebView.loadData()" into ics-mr0
2 parents 6252a8b + 33f962b commit bcfe415

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

core/java/android/webkit/WebView.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2079,10 +2079,12 @@ public void postUrl(String url, byte[] postData) {
20792079
* <p>
20802080
* The 'data' scheme URL formed by this method uses the default US-ASCII
20812081
* charset. If you need need to set a different charset, you should form a
2082-
* 'data' scheme URL which specifies a charset parameter and call
2083-
* {@link #loadUrl(String)} instead.
2082+
* 'data' scheme URL which explicitly specifies a charset parameter in the
2083+
* mediatype portion of the URL and call {@link #loadUrl(String)} instead.
2084+
* Note that the charset obtained from the mediatype portion of a data URL
2085+
* always overrides that specified in the HTML or XML document itself.
20842086
* @param data A String of data in the given encoding.
2085-
* @param mimeType The MIMEType of the data, e.g. 'text/html'.
2087+
* @param mimeType The MIME type of the data, e.g. 'text/html'.
20862088
* @param encoding The encoding of the data.
20872089
*/
20882090
public void loadData(String data, String mimeType, String encoding) {

0 commit comments

Comments
 (0)