com.jme.util.export.xml
Class XMLExporter

java.lang.Object
  extended by com.jme.util.export.xml.XMLExporter
All Implemented Interfaces:
JMEExporter

public class XMLExporter
extends java.lang.Object
implements JMEExporter

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

Field Summary
static java.lang.String ATTRIBUTE_SIZE
           
static java.lang.String ELEMENT_FLOATBUFFER
           
static java.lang.String ELEMENT_KEY
           
static java.lang.String ELEMENT_MAPENTRY
           
static java.lang.String ELEMENT_VALUE
           
 
Constructor Summary
XMLExporter()
           
 
Method Summary
 OutputCapsule getCapsule(Savable object)
           
static XMLExporter getInstance()
           
 boolean save(Savable object, java.io.File f)
           
 boolean save(Savable object, java.io.OutputStream f)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ELEMENT_MAPENTRY

public static final java.lang.String ELEMENT_MAPENTRY
See Also:
Constant Field Values

ELEMENT_KEY

public static final java.lang.String ELEMENT_KEY
See Also:
Constant Field Values

ELEMENT_VALUE

public static final java.lang.String ELEMENT_VALUE
See Also:
Constant Field Values

ELEMENT_FLOATBUFFER

public static final java.lang.String ELEMENT_FLOATBUFFER
See Also:
Constant Field Values

ATTRIBUTE_SIZE

public static final java.lang.String ATTRIBUTE_SIZE
See Also:
Constant Field Values
Constructor Detail

XMLExporter

public XMLExporter()
Method Detail

save

public boolean save(Savable object,
                    java.io.OutputStream f)
             throws java.io.IOException
Specified by:
save in interface JMEExporter
Throws:
java.io.IOException

save

public boolean save(Savable object,
                    java.io.File f)
             throws java.io.IOException
Specified by:
save in interface JMEExporter
Throws:
java.io.IOException

getCapsule

public OutputCapsule getCapsule(Savable object)
Specified by:
getCapsule in interface JMEExporter

getInstance

public static XMLExporter getInstance()