public Node loadBinaryFormat(InputStream binaryJme) throws IOException { return loadBinaryFormat(new Node("XML loaded scene"),binaryJme);
public Node loadBinaryFormat(Node storeNode, InputStream binaryJme) throws IOException { if (DEBUG) System.out.println("Begining read"); clearValues(); myScene=storeNode; myIn=new DataInputStream(binaryJme); readHeader(); s.push(storeNode); byte flag=myIn.readByte(); while (flag!=BinaryFormatConstants.END_FILE){ if (flag==BinaryFormatConstants.BEGIN_TAG) readBegining(); else if (flag==BinaryFormatConstants.END_TAG) readEnd(); else{ throw new IOException("Unknown flag:" + flag); } flag=myIn.readByte(); } if (DEBUG) System.out.println("Done reading"); clearValues(); return myScene;
    public Node loadBinaryFormat(InputStream binaryJme) throws IOException {        return loadBinaryFormat(new Node("XML loaded scene"),binaryJme);    }