Guest User

Untitled

a guest
Jun 22nd, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. //file is "javalangObject.class" when throwing the exception
  2. private byte[] loadClassFileData(String file) throws IOException {
  3. InputStream stream = parent.getResourceAsStream(file);
  4. int size = stream.available();
  5. byte buff[] = new byte[size];
  6. DataInputStream in = new DataInputStream(stream);
  7. in.readFully(buff);
  8. return buff;
  9. }
Add Comment
Please, Sign In to add comment