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
-
Method Summary
Modifier and TypeMethodDescriptiongetCapsule
(Savable id) int
Returns the version number written in the header of the J3O/XML file.static XMLImporter
Loads asset from the given input stream, parsing it into an application-usable object.load
(InputStream f) void
setAssetManager
(AssetManager assetManager)
-
Constructor Details
-
XMLImporter
public XMLImporter()
-
-
Method Details
-
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 interfaceJmeImporter
- Returns:
- Global version number for the file
-
getAssetManager
- Specified by:
getAssetManager
in interfaceJmeImporter
-
setAssetManager
-
load
Description copied from interface:AssetLoader
Loads asset from the given input stream, parsing it into an application-usable object.- Specified by:
load
in 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:
getCapsule
in interfaceJmeImporter
-
getInstance
-