|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.msv.util.Util
public class Util
Collection of utility methods.
Constructor Summary | |
---|---|
Util()
|
Method Summary | |
---|---|
static InputSource |
getInputSource(String fileOrURL)
Gets an InputSource from a string, which contains either a file name or an URL. |
static boolean |
isAbsoluteURI(String uri)
Checks if a given string is an absolute URI if it is an URI. |
static String |
which(Class clazz)
|
static String |
which(String classname,
ClassLoader loader)
Search the specified classloader for the given classname. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Util()
Method Detail |
---|
public static InputSource getInputSource(String fileOrURL)
public static boolean isAbsoluteURI(String uri)
This method does not check whether it is an URI.
This implementation is based on this post.
public static String which(Class clazz)
public static String which(String classname, ClassLoader loader)
classname
- the fully qualified name of the class to search forloader
- the classloader to search
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |