FileOutputStream fos = new FileOutputStream(new File(targetdir,outname));
FileOutputStream fos = new FileOutputStream(new File(getTargetDir(),outname));
    void writeMeasure(String context) throws Exception {      String className = toClassName(context);      String outname = className.toString() + ".java";      noteFile(outname);      if (cleanp) {        (new File(outname)).delete();      } else {        debug("Writing Measure \""+context+"\" to \""+outname+"\"");        FileOutputStream fos = new FileOutputStream(new File(targetdir,outname));        OutputStreamWriter osw = new OutputStreamWriter(fos);        PrintWriter out = new PrintWriter(osw);              writePrelude(out, context, className, outname);        writeClassDef(out, context, className);        out.close();      }      // check to see if we need to write a denominator class      String denC = p.get(context,"denominator_class");      if (denC != null) {        writeDenominatorClass(context, denC);      }    }