Search Results

Search found 1 results on 1 pages for 'aliya'.

Page 1/1 | 1 

  • Get size of jar file loaded by urlclassloader

    - by Aliya
    Does anybody know a good way to find the file size that is dynamically loaded by urlclassloader? I am using the urlclassloader in the following manner, but need to keep track of how much bandwidth is being used. URLClassLoader sysloader = (URLClassLoader) ClassLoader .getSystemClassLoader(); Class<URLClassLoader> sysclass = URLClassLoader.class; Method method = sysclass.getDeclaredMethod("addURL", parameters); method.setAccessible(true); method.invoke(sysloader, (Object[]) urls); Thanks in advance!

    Read the article

1