public void writeTileset(TileSet set, String filename) throws IOException {
public void writeTileset(TileSet set, String filename) throws Exception {
    public void writeTileset(TileSet set, String filename) throws IOException {        FileOutputStream os = new FileOutputStream(filename);        Writer writer = new OutputStreamWriter(os);        XMLWriter xmlWriter = new XMLWriter(writer);        xmlWriter.startDocument();        writeTileset(set, xmlWriter, filename);        xmlWriter.endDocument();        writer.flush();    }