com.jme3.export.xml
Class XMLExporter

java.lang.Object
  extended by com.jme3.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.


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)
          Returns the OutputCapsule for the given savable object.
static XMLExporter getInstance()
           
 boolean save(Savable object, java.io.File f)
          Export the Savable to a file.
 boolean save(Savable object, java.io.OutputStream f)
          Export the Savable to an OutputStream.
 
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
Description copied from interface: JmeExporter
Export the Savable to an OutputStream.

Specified by:
save in interface JmeExporter
Parameters:
object - The savable to export
f - The output stream
Returns:
Always returns true. If an error occurs during export, an exception is thrown
Throws:
java.io.IOException - If an io exception occurs during export

save

public boolean save(Savable object,
                    java.io.File f)
             throws java.io.IOException
Description copied from interface: JmeExporter
Export the Savable to a file.

Specified by:
save in interface JmeExporter
Parameters:
object - The savable to export
f - The file to export to
Returns:
Always returns true. If an error occurs during export, an exception is thrown
Throws:
java.io.IOException - If an io exception occurs during export

getCapsule

public OutputCapsule getCapsule(Savable object)
Description copied from interface: JmeExporter
Returns the OutputCapsule for the given savable object.

Specified by:
getCapsule in interface JmeExporter
Parameters:
object - The object to retrieve an output capsule for.
Returns:
the OutputCapsule for the given savable object.

getInstance

public static XMLExporter getInstance()