com.jme3.export.xml
Class XMLImporter

java.lang.Object
  extended by com.jme3.export.xml.XMLImporter
All Implemented Interfaces:
AssetLoader, JmeImporter

public class XMLImporter
extends java.lang.Object
implements JmeImporter

Part of the jME XML IO system as introduced in the google code jmexml project.


Constructor Summary
XMLImporter()
           
 
Method Summary
 AssetManager getAssetManager()
           
 InputCapsule getCapsule(Savable id)
           
 int getFormatVersion()
          Returns the version number written in the header of the J3O/XML file.
static XMLImporter getInstance()
           
 java.lang.Object load(AssetInfo info)
          Loads asset from the given input stream, parsing it into an application-usable object.
 Savable load(java.io.File f)
           
 Savable load(java.io.InputStream f)
           
 void setAssetManager(AssetManager assetManager)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLImporter

public XMLImporter()
Method Detail

getFormatVersion

public int getFormatVersion()
Description copied from interface: JmeImporter
Returns the version number written in the header of the J3O/XML file.

Specified by:
getFormatVersion in interface JmeImporter
Returns:
Global version number for the file

getAssetManager

public AssetManager getAssetManager()
Specified by:
getAssetManager in interface JmeImporter

setAssetManager

public void setAssetManager(AssetManager assetManager)

load

public java.lang.Object load(AssetInfo info)
                      throws java.io.IOException
Description copied from interface: AssetLoader
Loads asset from the given input stream, parsing it into an application-usable object.

Specified by:
load in interface AssetLoader
Returns:
An object representing the resource.
Throws:
java.io.IOException - If an I/O error occurs while loading

load

public Savable load(java.io.File f)
             throws java.io.IOException
Throws:
java.io.IOException

load

public Savable load(java.io.InputStream f)
             throws java.io.IOException
Throws:
java.io.IOException

getCapsule

public InputCapsule getCapsule(Savable id)
Specified by:
getCapsule in interface JmeImporter

getInstance

public static XMLImporter getInstance()