|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthudson.remoting.Which
public class Which
Locates where a given class is loaded from.
Constructor Summary | |
---|---|
Which()
|
Method Summary | |
---|---|
static java.io.File |
jarFile(java.lang.Class clazz)
Locates the jar file that contains the given class. |
static java.io.File |
jarFile(java.net.URL resource)
|
static java.net.URL |
jarURL(java.lang.Class clazz)
Locates the jar file that contains the given class. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Which()
Method Detail |
---|
public static java.net.URL jarURL(java.lang.Class clazz) throws java.io.IOException
java.lang.IllegalArgumentException
- if failed to determine.
java.io.IOException
public static java.io.File jarFile(java.lang.Class clazz) throws java.io.IOException
Note that jar files are not always loaded from File
,
so for diagnostics purposes jarURL(Class)
is preferrable.
java.lang.IllegalArgumentException
- if failed to determine.
java.io.IOException
public static java.io.File jarFile(java.net.URL resource) throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |