public void writeScene(Spatial spatial, OutputStream jMEFormat) throws IOException { if (spatial instanceof Node) writeScene((Node)spatial,jMEFormat); else if (spatial instanceof Geometry) writeScene((Geometry)spatial,jMEFormat);
public void writeScene(Node scene,OutputStream bin) throws IOException { myOut=new DataOutputStream(bin); sharedObjects.clear(); entireScene.clear(); totalShared=0; writeHeader(); findDuplicates(scene); entireScene.clear(); writeSpatial(scene); writeClosing(); myOut.close();
    public void writeScene(Spatial spatial, OutputStream jMEFormat) throws IOException {        if (spatial instanceof Node)            writeScene((Node)spatial,jMEFormat);        else if (spatial instanceof Geometry)            writeScene((Geometry)spatial,jMEFormat);    }