public void generateClassFile(OutputStream os){
  ClassWriter cw=new SootASMClassWriter(ClassWriter.COMPUTE_FRAMES);
  cv=cw;
  generateByteCode();
  try {
    os.write(cw.toByteArray());
  }
 catch (  IOException e) {
    throw new RuntimeException("Could not write class file in the ASM-backend!",e);
  }
}

public void generateClassFile ( OutputStream os ) { ClassWriter cw = new SootASMClassWriter ( ClassWriter . COMPUTE_FRAMES ) ; cv = cw ; generateByteCode ( ) ; try { os . write ( cw . toByteArray ( ) ) ; } catch ( IOException e ) { throw new RuntimeException ( "Could not write class file in the ASM-backend!" , e ) ; } }
outputs the bytecode generated as a class file
