A Custom Class Loader Part D
private byte[] getTypeFromHole(String typeName) {
String fileName = "hole" + File.separator +
typeName.replace('.', File.separatorChar) + ".class";
fis = new FileInputStream(fileName);
} catch (FileNotFoundException e) { return null; }
BufferedInputStream bis = new BufferedInputStream(fis);
ByteArrayOutputStream out = new ByteArrayOutputStream();
while (c != -1) { out.write(c); c = bis.read(); }
} catch (IOException e) { return null; }
return out.toByteArray();