net.fortuna.ical4j.util
Class Uris

java.lang.Object
  extended bynet.fortuna.ical4j.util.Uris

public final class Uris
extends Object

Utility methods for working with URIs.

Author:
Ben Fortuna

Method Summary
static String decode(String s)
          Decodes the specified URI string using the UTF-8 charset.
static String encode(String s)
          Encodes the specified URI string using the UTF-8 charset.
 
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 s)
Encodes the specified URI string using the UTF-8 charset. In the event that an exception is thrown, the specifed URI string is returned unmodified.

Parameters:
s - a URI string
Returns:
an encoded URI string

decode

public static String decode(String s)
Decodes the specified URI string using the UTF-8 charset. In the event that an exception is thrown, the specifed URI string is returned unmodified.

Parameters:
s - a URI string
Returns:
an encoded URI string