public class URIUtilities extends Object
| Constructor and Description |
|---|
URIUtilities() |
| Modifier and Type | Method and Description |
|---|---|
static File |
fileFromString(String fileName)
Get a File from the specified file name.
|
static String |
getConcatenatedParameters(Map<String,String> parameters,
String... keys)
Create the Query part of an URI
|
static Map<String,String> |
getQueryKeyValuePairs(URI uri)
Read the Query part of an URI.
|
static URI |
relativize(URI base,
URI target)
Enhanced version of URI.relativize, the target can now be in parent folder of base URI.
|
public static final String ENCODING
public static Map<String,String> getQueryKeyValuePairs(URI uri) throws UnsupportedEncodingException
uri - URI to splitUnsupportedEncodingExceptionpublic static String getConcatenatedParameters(Map<String,String> parameters, String... keys)
parameters - Parameters to readkeys - map property to readpublic static URI relativize(URI base, URI target)
base - Base uri, location from where to relativize.target - Target uri, final destination of returned URI.Copyright © 2019 CNRS. All rights reserved.