APIdia Launch Partner
Top Description Constructors Methods
com.sun.webkit.network

public final Class Util

extends Object
Class Inheritance
Imports
java.net.MalformedURLException

A collection of static utility methods dealing with network I/O.

Constructor Summary

AccessConstructor and Description
private
Util()

The private default constructor.

Method Summary

Modifier and TypeMethod and Description
public static String

Returns:

the resulting string suitable for passing into WebKit.
adjustUrlForWebKit
(String
the string to be converted. Must represent a valid URL.
url
)

Converts a string representing a valid URL to an equivalent string suitable for passing into WebKit.

pack-priv static String
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Utilback to summary
private Util()

The private default constructor. Ensures non-instantiability.

Method Detail

adjustUrlForWebKitback to summary
public static String adjustUrlForWebKit(String url) throws MalformedURLException

Converts a string representing a valid URL to an equivalent string suitable for passing into WebKit.

Parameters
url:String

the string to be converted. Must represent a valid URL.

Returns:String

the resulting string suitable for passing into WebKit.

Exceptions
MalformedURLException:
if url is not a valid URL.
NullPointerException:
if url is null.
formatHeadersback to summary
pack-priv static String formatHeaders(String headers)