# Print output for @column tags ?>
Developers

- Design
- Develop
- Distribute

Developer Console

## Most visited

## Recently visited

## Results for

Summary: Ctors | Methods | Inherited Methods

# URLUtil

`public final class URLUtil`
`extends Object` ``

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` | `guessFileName(String url, String contentDisposition, String mimeType)` Guesses canonical filename that a download would have, using the URL and contentDisposition.
`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` | `isContentUrl(String url)`
`static boolean` | `isCookielessProxyUrl(String url)` This method is deprecated. Cookieless proxy is no longer supported.
`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` | `isValidUrl(String url)`
`static String` | `stripAnchor(String url)` Strips the url of the anchor.

### Inherited methods
From class `java.lang.Object`
`Object` | `clone()` Creates and returns a copy of this object.
`boolean` | `equals(Object obj)` Indicates whether some other object is "equal to" this one.
`void` | `finalize()` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
`final Class<?>` | `getClass()` Returns the runtime class of this `Object`.
`int` | `hashCode()` Returns a hash code value for the object.
`final void` | `notify()` Wakes up a single thread that is waiting on this object's monitor.
`final void` | `notifyAll()` Wakes up all threads that are waiting on this object's monitor.
`String` | `toString()` Returns a string representation of the object.
`final void` | `wait(long timeout, int nanos)` Causes the current thread to wait until another thread invokes the `notify()` method or the `notifyAll()` method for this object, or some other thread interrupts the current thread, or a certain amount of real time has elapsed.
`final void` | `wait(long timeout)` Causes the current thread to wait until either another thread invokes the `notify()` method or the `notifyAll()` method for this object, or a specified amount of time has elapsed.
`final void` | `wait()` Causes the current thread to wait until another thread invokes the `notify()` method or the `notifyAll()` method for this object.

## Public constructors

### URLUtil

    public URLUtil ()

## Public methods

### composeSearchUrl

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

Parameters
`inQuery` | `String`
`template` | `String`
`queryPlaceHolder` | `String`

Returns
`String` |

### decode

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

Parameters
`url` | `byte`

Returns
`byte[]` |

Throws
`IllegalArgumentException` |

### guessFileName

    public static 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` | `String`: Url to the content
`contentDisposition` | `String`: Content-Disposition HTTP header or `null` This value may be `null`.
`mimeType` | `String`: Mime-type of the content or `null` This value may be `null`.

Returns
`String` | suggested filename

### guessUrl

    public static String guessUrl (String inUrl)

Cleans up (if possible) user-entered web addresses

Parameters
`inUrl` | `String`

Returns
`String` |

### isAboutUrl

    public static boolean isAboutUrl (String url)

Parameters
`url` | `String`

Returns
`boolean` | `true` if the url is an about: url.

### isAssetUrl

    public static boolean isAssetUrl (String url)

Parameters
`url` | `String`

Returns
`boolean` | `true` if the url is an asset file.

### isContentUrl

    public static boolean isContentUrl (String url)

Parameters
`url` | `String`

Returns
`boolean` | `true` if the url is a content: url.

### isCookielessProxyUrl

    public static boolean isCookielessProxyUrl (String url)

This method is deprecated.
Cookieless proxy is no longer supported.

Parameters
`url` | `String`

Returns
`boolean` | `true` if the url is a proxy url to allow cookieless network requests from a file url.

### isDataUrl

    public static boolean isDataUrl (String url)

Parameters
`url` | `String`

Returns
`boolean` | `true` if the url is a data: url.

### isFileUrl

    public static boolean isFileUrl (String url)

Parameters
`url` | `String`

Returns
`boolean` | `true` if the url is a local file.

### isHttpUrl

    public static boolean isHttpUrl (String url)

Parameters
`url` | `String`

Returns
`boolean` | `true` if the url is an http: url.

### isHttpsUrl

    public static boolean isHttpsUrl (String url)

Parameters
`url` | `String`

Returns
`boolean` | `true` if the url is an https: url.

### isJavaScriptUrl

    public static boolean isJavaScriptUrl (String url)

Parameters
`url` | `String`

Returns
`boolean` | `true` if the url is a javascript: url.

### isNetworkUrl

    public static boolean isNetworkUrl (String url)

Parameters
`url` | `String`

Returns
`boolean` | `true` if the url is a network url.

### isValidUrl

    public static boolean isValidUrl (String url)

Parameters
`url` | `String`

Returns
`boolean` | `true` if the url is valid.

### stripAnchor

    public static String stripAnchor (String url)

Strips the url of the anchor.

Parameters
`url` | `String`

Returns
`String` |

Full name *
Email address *
Company / developer name
One of your Play Store app URLs *
Which best describes your business:*
Apps
Games
Apps & Games
*
*