English | Site Directory

Android - An Open Handset Alliance Project

android.webkit
public class

android.webkit.URLUtil

java.lang.Object
android.webkit.URLUtil

Summary

Public Constructors

          URLUtil()

Public Methods

      static  String  composeSearchUrl(String inQuery, String template, String queryPlaceHolder)
      static  byte[]  decode(byte[] url)
      static  String  guessUrl(String inUrl)
Cleans up (if possible) user-entered web addresses
      static  boolean  isAboutUrl(String url)
      static  boolean  isAssetUrl(String url)
      static  boolean  isDataUrl(String url)
      static  boolean  isFileUrl(String url)
      static  boolean  isHttpUrl(String url)
      static  boolean  isHttpsUrl(String url)
      static  boolean  isJavaScriptUrl(String url)
      static  boolean  isNetworkUrl(String url)
      static  boolean  isSecureUrl(String url)
      static  boolean  isValidUrl(String url)
      static  String  stripAnchor(String url)
Strips the url of the anchor.
Methods inherited from class java.lang.Object

Details

Public Constructors

public URLUtil()

Public Methods

public static String composeSearchUrl(String inQuery, String template, String queryPlaceHolder)

public static byte[] decode(byte[] url)

public static String guessUrl(String inUrl)

Cleans up (if possible) user-entered web addresses

public static boolean isAboutUrl(String url)

Returns

  • True iff the url is an about: url.

public static boolean isAssetUrl(String url)

Returns

  • True iff the url is an asset file.

public static boolean isDataUrl(String url)

Returns

  • True iff the url is a data: url.

public static boolean isFileUrl(String url)

Returns

  • True iff the url is a local file.

public static boolean isHttpUrl(String url)

Returns

  • True iff the url is an http: url.

public static boolean isHttpsUrl(String url)

Returns

  • True iff the url is an https: url.

public static boolean isJavaScriptUrl(String url)

Returns

  • True iff the url is a javascript: url.

public static boolean isNetworkUrl(String url)

Returns

  • True iff the url is a network url.

public static boolean isSecureUrl(String url)

Returns

  • True iff the url is a "secure" url.

public static boolean isValidUrl(String url)

Returns

  • True iff the url is valid.

public static String stripAnchor(String url)

Strips the url of the anchor.
Build m5-rc15i - 10 Jun 2008 13:54