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!