public class ParseUtil
extends java.lang.Object
| Constructor and Description |
|---|
ParseUtil() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
canonizeString(java.lang.String file)
Returns a canonical version of the specified string.
|
static java.lang.String |
decode(java.lang.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.
|
static java.lang.String |
encodePath(java.lang.String path)
Constructs an encoded version of the specified path string suitable
for use in the construction of a URL.
|
static java.lang.String |
encodePath(java.lang.String path,
boolean flag) |
static java.net.URL |
fileToEncodedURL(java.io.File file) |
static java.net.URI |
toURI(java.net.URL url) |
public static java.lang.String encodePath(java.lang.String path)
public static java.lang.String encodePath(java.lang.String path,
boolean flag)
public static java.lang.String decode(java.lang.String s)
public java.lang.String canonizeString(java.lang.String file)
public static java.net.URL fileToEncodedURL(java.io.File file)
throws java.net.MalformedURLException
java.net.MalformedURLExceptionpublic static java.net.URI toURI(java.net.URL url)
Copyright © 2020. All Rights Reserved.