/**
* Returns the class name in the given .class bytecode.
*/
private String getFromClass(InputStream in) throws IOException {
ConstantPoolTable table = new ConstantPoolTable(in);
int idx = table.getEndIndex();
idx += 2; // access flags
int clsEntry = table.readUnsignedShort(idx);
int utfEntry = table.readUnsignedShort(table.get(clsEntry));
return table.readString(table.get(utfEntry)).replace('/', '.');
}