public ByteBuffer getData(int index) {
        if (data.size() > index)
            return data.get(index);
        else
            return null;
    }
<code>getData</code> returns the data for this image. If the data is
undefined, null will be returned.

@param index index of the data buffer to access
@return the data for this image.
jme3-core/src/main/java/com/jme3/texture/Image.java