public class UriTools
extends java.lang.Object
URIs.| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
SEPARATOR
The separator for the URIs in an URI[], which will be stored as string.
|
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getStringFromURIs(java.net.URI[] uris,
java.util.logging.Logger logger)
Convert an array of URIs to a string with special separator characters
(%|).
|
static java.net.URI[] |
getURIsFromString(java.lang.String string,
java.util.logging.Logger logger)
Convert a string with special separator characters (%|) to an array of URIs.
|
protected static final java.lang.String SEPARATOR
public static java.lang.String getStringFromURIs(java.net.URI[] uris,
java.util.logging.Logger logger)
uris - The array of URIs that should be converted.logger - The logger for log messages.null in case of
null or an empty array.public static java.net.URI[] getURIsFromString(java.lang.String string,
java.util.logging.Logger logger)
throws java.net.URISyntaxException
string - The string that should be converted.logger - The logger for log messages.java.net.URISyntaxException - If problems occur during the (re-)creation of
the URIs.