LineWriter dotOut = new LineWriter(new FileWriter(dotFile));
LineWriter dotOut = new LineWriter(new FileOutputStream(dotFile));
    public boolean writeOrphans(Database db, List orphanTables, boolean hasRelationships, File graphDir, LineWriter html) throws IOException {        Dot dot = getDot();        if (dot == null)            return false;        Set orphansWithImpliedRelationships = new HashSet();        Iterator iter = orphanTables.iterator();        while (iter.hasNext()) {            Table table = (Table)iter.next();            if (!table.isOrphan(true)){                orphansWithImpliedRelationships.add(table);            }        }        writeOrphansHeader(db, "Utility Tables Graph", hasRelationships, !orphansWithImpliedRelationships.isEmpty(), html);        html.writeln("<a name='graph'>");        try {            iter = orphanTables.iterator();            while (iter.hasNext()) {                Table table = (Table)iter.next();                String dotBaseFilespec = table.getName();                File dotFile = new File(graphDir, dotBaseFilespec + ".1degree.dot");                File graphFile = new File(graphDir, dotBaseFilespec + ".1degree.png");                LineWriter dotOut = new LineWriter(new FileWriter(dotFile));                DotFormatter.getInstance().writeOrphan(table, dotOut);                dotOut.close();                try {                    dot.generateGraph(dotFile, graphFile);                } catch (Dot.DotFailure dotFailure) {                    System.err.println(dotFailure);                    return false;                }                html.write("  <img src='graphs/summary/" + graphFile.getName() + "' usemap='#" + table + "' border='0' alt='' align='top'");                if (orphansWithImpliedRelationships.contains(table))                    html.write(" class='impliedNotOrphan'");                html.writeln(">");            }            iter = orphanTables.iterator();            while (iter.hasNext()) {                Table table = (Table)iter.next();                String dotBaseFilespec = table.getName();                File dotFile = new File(graphDir, dotBaseFilespec + ".1degree.dot");                dot.writeMap(dotFile, html);            }            return true;        } finally {            html.writeln("</a>");            writeFooter(html);        }    }