Chunk mainPart=readChunk(); if (mainPart.type!=MAIN_3DS){ throw new IOException("Header doesn't match.  Probably not a 3ds file"); } mainPart.length-=6; s.push(new Node("3ds scene")); readFile(mainPart.length); Node totalScene=(Node) s.pop(); new JmeBinaryWriter().writeScene(totalScene,bin);
chunkedTDS=new TDSFile(myIn);
    public void convert(InputStream max,OutputStream bin) throws IOException {        s.clear();        myIn=new LittleEndien(max);        Chunk mainPart=readChunk();        if (mainPart.type!=MAIN_3DS){            throw new IOException("Header doesn't match.  Probably not a 3ds file");        }        mainPart.length-=6;        s.push(new Node("3ds scene"));        readFile(mainPart.length);        Node totalScene=(Node) s.pop();        new JmeBinaryWriter().writeScene(totalScene,bin);    }