|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hdfs.server.common.Util
@InterfaceAudience.Private public final class Util
Constructor Summary | |
---|---|
Util()
|
Method Summary | |
---|---|
static URI |
fileAsURI(File f)
Converts the passed File to a URI. |
static long |
now()
Current system time. |
static URI |
stringAsURI(String s)
Interprets the passed string as a URI. |
static Collection<URI> |
stringCollectionAsURIs(Collection<String> names)
Converts a collection of strings into a collection of URIs. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Util()
Method Detail |
---|
public static long now()
public static URI stringAsURI(String s) throws IOException
s
- the string to interpret
IOException
public static URI fileAsURI(File f) throws IOException
f
- the file to convert
IOException
public static Collection<URI> stringCollectionAsURIs(Collection<String> names)
names
- collection of strings to convert to URIs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |