Home » openjdk-7 » sun » net » www » [javadoc | source]
sun.net.www
public class: ParseUtil [javadoc | source]
java.lang.Object
   sun.net.www.ParseUtil
A class that contains useful routines common to sun.net.www
Field Summary
static  BitSet encodedInPath     
Method from sun.net.www.ParseUtil Summary:
canonizeString,   decode,   encodePath,   encodePath,   fileToEncodedURL,   toURI
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from sun.net.www.ParseUtil Detail:
 public String canonizeString(String file) 
    Returns a canonical version of the specified string.
 public static String decode(String s) 
    Returns a new String constructed from the specified String by replacing the URL escape sequences and UTF8 encoding with the characters they represent.
 public static String encodePath(String path) 
    Constructs an encoded version of the specified path string suitable for use in the construction of a URL. A path separator is replaced by a forward slash. The string is UTF8 encoded. The % escape sequence is used for characters that are above 0x7F or those defined in RFC2396 as reserved or excluded in the path component of a URL.
 public static String encodePath(String path,
    boolean flag) 
 public static URL fileToEncodedURL(File file) throws MalformedURLException 
 public static URI toURI(URL url)