public class Which extends Object
Constructor and Description |
---|
Which() |
public static URL jarURL(Class clazz) throws IOException
IllegalArgumentException
- if failed to determine.IOException
public static File jarFile(Class clazz) throws IOException
Note that jar files are not always loaded from File
,
so for diagnostics purposes jarURL(Class)
is preferrable.
IllegalArgumentException
- if failed to determine.IOException
public static File jarFile(URL resource) throws IOException
IOException
Copyright © 2013. All rights reserved.