}
}
void write(File f) throws IOException {
try {
SceneGraphFileWriter w = new SceneGraphFileWriter(f, null, false,
"TBDuinverseName", null);
Enumeration<?> e = _rootLocale.getAllBranchGraphs();
while (e.hasMoreElements()) {
BranchGroup bg = (BranchGroup) e.nextElement();
if (!(bg instanceof ViewingPlatform)) {
// TODO serialize a name ???
w.writeBranchGraph(bg, null);
}
}
w.close();
} catch (UnsupportedUniverseException e) {
// will not be thrown but in case
throw new IOException(e.getMessage());
}
}