Package com.jme3.export.xml
Class XMLImporter
java.lang.Object
com.jme3.export.xml.XMLImporter
- All Implemented Interfaces:
AssetLoader,JmeImporter
Part of the jME XML IO system as introduced in the Google Code jmexml project.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCapsule(Savable id) intReturns the version number written in the header of the J3O/XML file.static XMLImporterLoads asset from the given input stream, parsing it into an application-usable object.load(InputStream f) voidsetAssetManager(AssetManager assetManager)
-
Constructor Details
-
XMLImporter
public XMLImporter()
-
-
Method Details
-
getFormatVersion
public int getFormatVersion()Description copied from interface:JmeImporterReturns the version number written in the header of the J3O/XML file.- Specified by:
getFormatVersionin interfaceJmeImporter- Returns:
- Global version number for the file
-
getAssetManager
- Specified by:
getAssetManagerin interfaceJmeImporter
-
setAssetManager
-
load
Description copied from interface:AssetLoaderLoads asset from the given input stream, parsing it into an application-usable object.- Specified by:
loadin interfaceAssetLoader- Parameters:
info- the located asset- Returns:
- An object representing the resource.
- Throws:
IOException- If an I/O error occurs while loading
-
load
- Throws:
IOException
-
load
- Throws:
IOException
-
getCapsule
- Specified by:
getCapsulein interfaceJmeImporter
-
getInstance
-