com.jme.util.export.xml
Class XMLImporter
java.lang.Object
com.jme.util.export.xml.XMLImporter
- All Implemented Interfaces:
- JMEImporter, ResourceLocator
public class XMLImporter
- extends java.lang.Object
- implements JMEImporter, ResourceLocator
Part of the jME XML IO system as introduced in the google code jmexml project.
- Author:
- Kai Rabien (hevee) - original author of the code.google.com jmexml project, Doug Daniels (dougnukem) - adjustments for jME 2.0 and Java 1.5
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XMLImporter
public XMLImporter()
load
public Savable load(java.io.InputStream f)
throws java.io.IOException
- Specified by:
load
in interface JMEImporter
- Throws:
java.io.IOException
load
public Savable load(java.net.URL f)
throws java.io.IOException
- Specified by:
load
in interface JMEImporter
- Throws:
java.io.IOException
load
public Savable load(java.io.File f)
throws java.io.IOException
- Specified by:
load
in interface JMEImporter
- Throws:
java.io.IOException
getCapsule
public InputCapsule getCapsule(Savable id)
- Specified by:
getCapsule
in interface JMEImporter
getInstance
public static XMLImporter getInstance()
locateResource
public java.net.URL locateResource(java.lang.String resourceName)
- Description copied from interface:
ResourceLocator
- Locates a resource according to the strategy of the resource locator implementation (subclass).
- Specified by:
locateResource
in interface ResourceLocator
- Parameters:
resourceName
- the name of the resource to locate; it this is a path it must be slash separated (no backslashes)
- Returns:
- a URL for the resource, null if the resource was not found
- See Also:
SimpleResourceLocator
,
MultiFormatResourceLocator