android.webkit
public
final
class
android.webkit.URLUtil
Summary
Public Constructors
Public Methods
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait
Details
Public Constructors
Public Methods
public
static
byte[]
decode(byte[] url)
public
static
final
String
guessFileName(String url, String contentDisposition, String mimeType)
Guesses canonical filename that a download would have, using
the URL and contentDisposition. File extension, if not defined,
is added based on the mimetype
Parameters
url
| Url to the content |
contentDisposition
| Content-Disposition HTTP header or null |
mimeType
| Mime-type of the content or null |
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
isContentUrl(String url)
Returns
- True iff the url is a content: url.
public
static
boolean
isCookielessProxyUrl(String url)
Returns
- True iff the url is an proxy url to allow cookieless network
requests from a file url.
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
isValidUrl(String url)
Returns
- True iff the url is valid.
public
static
String
stripAnchor(String url)
Strips the url of the anchor.