org.eclipse.webdav.internal.utils
Class URLEncoder

java.lang.Object
  extended by org.eclipse.webdav.internal.utils.URLEncoder

public final class URLEncoder
extends Object

Encodes a URL into an ASCII readable URL that is safe for transport. Encoded URLs can be decoded using the URLDecoder.

See Also:
URLDecoder

Method Summary
static String encode(String url)
          Encodes the given URL into an ASCII readable URL that is safe for transport.
static String encode(String file, String ref)
          Encodes the given file and reference parts of a URL into an ASCII readable String that is safe for transport.
static URL encode(URL url)
          Encodes the given URL into an ASCII readable URL that is safe for transport.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

encode

public static String encode(String url)
Encodes the given URL into an ASCII readable URL that is safe for transport. Returns the result.

Returns:
the result of encoding the given URL into an ASCII readable URL that is safe for transport

encode

public static String encode(String file,
                            String ref)
Encodes the given file and reference parts of a URL into an ASCII readable String that is safe for transport. Returns the result.

Returns:
the result of encoding the given file and reference parts of a URL into an ASCII readable String that is safe for transport

encode

public static URL encode(URL url)
Encodes the given URL into an ASCII readable URL that is safe for transport. Returns the result.

Returns:
the result of encoding the given URL into an ASCII readable URL that is safe for transport


Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.