org.apache.webdav.client
Class URIEncoder

java.lang.Object
  extended by org.apache.webdav.client.URIEncoder

public class URIEncoder
extends java.lang.Object

Taken from UrlUtil (cstUtils)


Constructor Summary
URIEncoder(java.lang.String uri)
          Constructs an UrlUtil object.
 
Method Summary
 java.lang.String encode()
          Return string representation.
static java.lang.String encode(java.lang.String uri)
          Encode an URI to UTF-8.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

URIEncoder

public URIEncoder(java.lang.String uri)
Constructs an UrlUtil object.

Parameters:
uri - The URI.
Method Detail

encode

public java.lang.String encode()
Return string representation.

Returns:
hex encoded URL

encode

public static java.lang.String encode(java.lang.String uri)
Encode an URI to UTF-8.

Parameters:
uri - The URI to be encoded.
Returns:
UTF-8 encoded URI.


Copyright (c) 2003 - Apache Software Foundation