diff options
| author | Bart Sears <bsears@google.com> | 2011-10-13 16:27:16 -0700 |
|---|---|---|
| committer | Android Git Automerger <android-git-automerger@android.com> | 2011-10-13 16:27:16 -0700 |
| commit | 0272df85061304683a1fa9aa5825ba8dbf102841 (patch) | |
| tree | 711dac99780f80705a506169ea3dbe5ea2fb88a1 /core/java/android/webkit/WebView.java | |
| parent | ee12e44b77a47f9b95fcb5b484e3d1b11649fcb9 (diff) | |
| parent | bcfe41529b7bd9f572a2eff31375dc9fdf35b518 (diff) | |
| download | frameworks_base-0272df85061304683a1fa9aa5825ba8dbf102841.zip frameworks_base-0272df85061304683a1fa9aa5825ba8dbf102841.tar.gz frameworks_base-0272df85061304683a1fa9aa5825ba8dbf102841.tar.bz2 | |
am bcfe4152: Merge "Improve JavaDoc for WebView.loadData()" into ics-mr0
* commit 'bcfe41529b7bd9f572a2eff31375dc9fdf35b518':
Improve JavaDoc for WebView.loadData()
Diffstat (limited to 'core/java/android/webkit/WebView.java')
| -rw-r--r-- | core/java/android/webkit/WebView.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/core/java/android/webkit/WebView.java b/core/java/android/webkit/WebView.java index a851fb4..ae1b66c 100644 --- a/core/java/android/webkit/WebView.java +++ b/core/java/android/webkit/WebView.java @@ -2079,10 +2079,12 @@ public class WebView extends AbsoluteLayout * <p> * The 'data' scheme URL formed by this method uses the default US-ASCII * charset. If you need need to set a different charset, you should form a - * 'data' scheme URL which specifies a charset parameter and call - * {@link #loadUrl(String)} instead. + * 'data' scheme URL which explicitly specifies a charset parameter in the + * mediatype portion of the URL and call {@link #loadUrl(String)} instead. + * Note that the charset obtained from the mediatype portion of a data URL + * always overrides that specified in the HTML or XML document itself. * @param data A String of data in the given encoding. - * @param mimeType The MIMEType of the data, e.g. 'text/html'. + * @param mimeType The MIME type of the data, e.g. 'text/html'. * @param encoding The encoding of the data. */ public void loadData(String data, String mimeType, String encoding) { |
