@InterfaceAudience.Private public final class Util extends Object
| Constructor and Description |
|---|
Util() |
| Modifier and Type | Method and Description |
|---|---|
static URI |
fileAsURI(File f)
Converts the passed File to a URI.
|
static URI |
stringAsURI(String s)
Interprets the passed string as a URI.
|
static List<URI> |
stringCollectionAsURIs(Collection<String> names)
Converts a collection of strings into a collection of URIs.
|
public static URI stringAsURI(String s) throws IOException
s - the string to interpretIOExceptionpublic static URI fileAsURI(File f) throws IOException
f - the file to convertIOExceptionpublic static List<URI> stringCollectionAsURIs(Collection<String> names)
names - collection of strings to convert to URIsCopyright © 2013 Apache Software Foundation. All rights reserved.