@Override
    public Object load(AssetInfo info) throws IOException {
        if (!(info.getKey() instanceof TextureKey)) {
            throw new IllegalArgumentException("Texture assets must be loaded using a TextureKey");
        }

        InputStream in = null;
        try {
            in = info.openStream();
            Image img = load(in);
            return img;
        } finally {
            if (in != null) {
                in.close();
            }
        }
    }
A KTX file loader
KTX file format is an image container defined by the Khronos group
See specs here https://www.khronos.org/opengles/sdk/tools/KTX/file_format_spec/

This loader doesn't support compressed files yet.

@author Nehon
jme3-core/src/plugins/java/com/jme3/texture/plugins/ktx/KTXLoader.java