Interface AssetLoader

All Known Subinterfaces:
JmeImporter
All Known Implementing Classes:
AndroidAudioLoader, AndroidBufferImageLoader, AndroidNativeImageLoader, AWTLoader, BinaryImporter, BinaryLoader, BinLoader, BitmapFontLoader, CursorLoader, DDSLoader, FbxLoader, GlbLoader, GLSLLoader, GltfLoader, HDRLoader, IosImageLoader, J3MLoader, KTXLoader, MaterialLoader, MeshLoader, MTLLoader, NativeVorbisLoader, OBJLoader, OGGLoader, PFMLoader, SceneLoader, SceneLoader, SceneMeshLoader, SceneWithAnimationLoader, ShaderNodeDefinitionLoader, SkeletonLoader, TGALoader, WAVLoader, XMLImporter

public interface AssetLoader
An interface for asset loaders. An AssetLoader is responsible for loading a certain type of asset associated with file extension(s). The loader will load the data in the provided AssetInfo object by calling AssetInfo.openStream(), returning an object representing the parsed data.
  • Method Summary

    Modifier and Type
    Method
    Description
    load(AssetInfo assetInfo)
    Loads asset from the given input stream, parsing it into an application-usable object.
  • Method Details

    • load

      Object load(AssetInfo assetInfo) throws IOException
      Loads asset from the given input stream, parsing it into an application-usable object.
      Parameters:
      assetInfo - the located asset
      Returns:
      An object representing the resource.
      Throws:
      IOException - If an I/O error occurs while loading