(File file)
| 26 | } |
| 27 | |
| 28 | private static byte[] read(File file) throws IOException { |
| 29 | byte[] bytes = new byte[(int) file.length()]; |
| 30 | FileInputStream in = new FileInputStream(file); |
| 31 | try { |
| 32 | if (in.read(bytes) != (int) file.length()) { |
| 33 | throw new RuntimeException(); |
| 34 | } |
| 35 | return bytes; |
| 36 | } finally { |
| 37 | in.close(); |
| 38 | } |
| 39 | } |
| 40 | |
| 41 | public static void main(String[] args) throws Exception { |
| 42 | Class c = new MyClassLoader(LazyLoading.class.getClassLoader()).loadClass |