Package jme3utilities

Class StringLoader

java.lang.Object
jme3utilities.StringLoader
All Implemented Interfaces:
com.jme3.asset.AssetLoader

public final class StringLoader extends Object implements com.jme3.asset.AssetLoader
An asset loader for text assets.
  • Constructor Summary

    Constructors
    Constructor
    Description
    The publicly accessible no-arg constructor required by DesktopAssetManager, made explicit to avoid javadoc warnings from JDK 18.
  • Method Summary

    Modifier and Type
    Method
    Description
    load(com.jme3.asset.AssetInfo assetInfo)
    Load a text asset.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • StringLoader

      public StringLoader()
      The publicly accessible no-arg constructor required by DesktopAssetManager, made explicit to avoid javadoc warnings from JDK 18.
  • Method Details

    • load

      public Object load(com.jme3.asset.AssetInfo assetInfo)
      Load a text asset.
      Specified by:
      load in interface com.jme3.asset.AssetLoader
      Parameters:
      assetInfo - the located asset (unused)
      Returns:
      the text, or null in case of an error