public class XMLImporter extends java.lang.Object implements JmeImporter
Constructor and Description |
---|
XMLImporter() |
Modifier and Type | Method and Description |
---|---|
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) |
public int getFormatVersion()
JmeImporter
getFormatVersion
in interface JmeImporter
public AssetManager getAssetManager()
getAssetManager
in interface JmeImporter
public void setAssetManager(AssetManager assetManager)
public java.lang.Object load(AssetInfo info) throws java.io.IOException
AssetLoader
load
in interface AssetLoader
java.io.IOException
- If an I/O error occurs while loadingpublic Savable load(java.io.File f) throws java.io.IOException
java.io.IOException
public Savable load(java.io.InputStream f) throws java.io.IOException
java.io.IOException
public InputCapsule getCapsule(Savable id)
getCapsule
in interface JmeImporter
public static XMLImporter getInstance()