FloatBuffer buf = BufferUtils.createFloatBuffer(len); for (int x = 0; x < len; x++)
FloatBuffer buf = BufferUtils.createFloatBuffer(len2); for (int x = 0; x < len2; x++)
    private void readObject(java.io.ObjectInputStream s) throws IOException,            ClassNotFoundException {        s.defaultReadObject();        // vert buffer        int len = s.readInt();        if (len == 0) {            setVertexBuffer(null);        } else {            FloatBuffer buf = BufferUtils.createFloatBuffer(len);            for (int x = 0; x < len; x++)                buf.put(s.readFloat());            setVertexBuffer(buf);                    }        // norm buffer        len = s.readInt();        if (len == 0) {            setNormalBuffer(null);        } else {            FloatBuffer buf = BufferUtils.createFloatBuffer(len);            for (int x = 0; x < len; x++)                buf.put(s.readFloat());            setNormalBuffer(buf);                    }        // color buffer        len = s.readInt();        if (len == 0) {            setColorBuffer(null);        } else {            FloatBuffer buf = BufferUtils.createFloatBuffer(len);            for (int x = 0; x < len; x++)                buf.put(s.readFloat());            setColorBuffer(buf);                    }        // tex buffers        len = s.readInt();        if (len == 0) {            texBuf = null;        } else {            texBuf = new ArrayList(1);            for (int i = 0; i < len; i++) {                len = s.readInt();                if (len == 0) {                    setTextureBuffer(null, i);                } else {                    FloatBuffer buf = BufferUtils.createFloatBuffer(len);                    for (int x = 0; x < len; x++)                        buf.put(s.readFloat());                    setTextureBuffer(buf, i);                            }            }        }    }