fos = new FileOutputStream(new File(targetdir,outname));
fos = new FileOutputStream(new File(getTargetDir(),outname));
    void writePropertyGroup(String context) throws Exception {      String className = toClassName(context);      FileOutputStream fos;      OutputStreamWriter osw;      PrintWriter out;      if (cleanp) {        (new File(className.toString() + ".java")).delete();        (new File("New"+ className.toString() + ".java")).delete();        (new File(className.toString() + "Impl.java")).delete();        (new File(className.toString() + "BeanInfo.java")).delete();        return;      }      String outname = className.toString() + ".java";      if (writeInterfaces) {        debug("Writing GetterIfc \""+context+"\" to \""+outname+"\"");        noteFile(outname);        fos = new FileOutputStream(new File(targetdir,outname));        osw = new OutputStreamWriter(fos);        out = new PrintWriter(osw);        writeCR(out);        writeGetterIfc(out, context, className);        out.close();        outname = "New" + className.toString() + ".java";        debug("Writing SetterIfc \""+context+"\" to \""+outname+"\"");        noteFile(outname);        fos = new FileOutputStream(new File(targetdir,outname));        osw = new OutputStreamWriter(fos);        out = new PrintWriter(osw);        writeCR(out);        writeSetterIfc(out, context, className);        out.close();      }      outname = className.toString() + "Impl.java";      debug("Writing Impl \""+context+"\" to \""+outname+"\"");      noteFile(outname);      fos = new FileOutputStream(new File(targetdir,outname));      osw = new OutputStreamWriter(fos);      out = new PrintWriter(osw);      writeCR(out);      writeImpl(out, context, className);      out.close();    }