Codota Logo
AssetConfig
Code IndexAdd Codota to your IDE (free)

How to use
AssetConfig
in
com.jme3.asset

Best Java code snippets using com.jme3.asset.AssetConfig (Showing top 5 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Dictionary d =
  • Codota Iconnew Hashtable()
  • Codota IconBundle bundle;bundle.getHeaders()
  • Codota Iconnew Properties()
  • Smart code suggestions by Codota
}
origin: jMonkeyEngine/jmonkeyengine

  extensions[i] = extensions[i].trim();
Class clazz = acquireClass(loaderClass);
if (clazz != null) {
  assetManager.registerLoader(clazz, extensions);
String rootPath = scan.next();
String locatorClass = scan.nextLine().trim();
Class clazz = acquireClass(locatorClass);
if (clazz != null) {
  assetManager.registerLocator(rootPath, clazz);
URL includedCfgUrl = Thread.currentThread().getContextClassLoader().getResource(includedCfg);
if (includedCfgUrl != null) {
  loadText(assetManager, includedCfgUrl);
} else {
  logger.log(Level.WARNING, "Cannot find config include {0}", includedCfg);
origin: info.projectkyoto/mms-engine

public DesktopAssetManager(URL configFile){
  if (configFile != null){
    InputStream stream = null;
    try{
      AssetConfig cfg = new AssetConfig(this);
      stream = configFile.openStream();
      cfg.loadText(stream);
    }catch (IOException ex){
      logger.log(Level.SEVERE, "Failed to load asset config", ex);
    }finally{
      if (stream != null)
        try{
          stream.close();
        }catch (IOException ex){
        }
    }
  }
  logger.info("DesktopAssetManager created.");
}
origin: jMonkeyEngine/jmonkeyengine

private void loadConfigFile(URL configFile) {
  try {
    AssetConfig.loadText(this, configFile);
  } catch (IOException ex) {
    logger.log(Level.SEVERE, "Failed to load asset config", ex);
  }
}

origin: org.jmonkeyengine/jme3-core

private void loadConfigFile(URL configFile) {
  try {
    AssetConfig.loadText(this, configFile);
  } catch (IOException ex) {
    logger.log(Level.SEVERE, "Failed to load asset config", ex);
  }
}

origin: org.jmonkeyengine/jme3-core

  extensions[i] = extensions[i].trim();
Class clazz = acquireClass(loaderClass);
if (clazz != null) {
  assetManager.registerLoader(clazz, extensions);
String rootPath = scan.next();
String locatorClass = scan.nextLine().trim();
Class clazz = acquireClass(locatorClass);
if (clazz != null) {
  assetManager.registerLocator(rootPath, clazz);
URL includedCfgUrl = Thread.currentThread().getContextClassLoader().getResource(includedCfg);
if (includedCfgUrl != null) {
  loadText(assetManager, includedCfgUrl);
} else {
  logger.log(Level.WARNING, "Cannot find config include {0}", includedCfg);
com.jme3.assetAssetConfig

Javadoc

AssetConfig loads a config file to configure the asset manager.

The config file is specified with the following format: "INCLUDE" "LOADER" : ( ",")* "LOCATOR"

Most used methods

  • loadText
  • acquireClass
  • <init>

Popular in Java

  • Reactive rest calls using spring rest template
  • getSystemService (Context)
  • startActivity (Activity)
  • putExtra (Intent)
  • BufferedInputStream (java.io)
    Wraps an existing InputStream and buffers the input. Expensive interaction with the underlying input
  • FileInputStream (java.io)
    A FileInputStream obtains input bytes from a file in a file system. What files are available depends
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • ResourceBundle (java.util)
    Resource bundles contain locale-specific objects. When your program needs a locale-specific resource
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now