| |
|
| java.lang.Object sun.net.www.ParseUtil
ParseUtil | public class ParseUtil (Code) | | A class that contains useful routines common to sun.net.www
author: Mike McCloskey |
Method Summary | |
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. | public static URL | fileToEncodedURL(File file) |
canonizeString | public String canonizeString(String file)(Code) | | Returns a canonical version of the specified string.
|
decode | public static String decode(String s)(Code) | | Returns a new String constructed from the specified String by replacing
the URL escape sequences and UTF8 encoding with the characters they
represent.
|
encodePath | public static String encodePath(String path)(Code) | | 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.
|
|
|
|