Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //file is "javalangObject.class" when throwing the exception
- private byte[] loadClassFileData(String file) throws IOException {
- InputStream stream = parent.getResourceAsStream(file);
- int size = stream.available();
- byte buff[] = new byte[size];
- DataInputStream in = new DataInputStream(stream);
- in.readFully(buff);
- return buff;
- }
Add Comment
Please, Sign In to add comment