public class XMLExporter extends java.lang.Object implements JmeExporter
| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
XMLExporter() |
| Modifier and Type | Method and Description |
|---|---|
OutputCapsule |
getCapsule(Savable object)
Returns the
OutputCapsule for the given savable object. |
static XMLExporter |
getInstance() |
void |
save(Savable object,
java.io.File f)
Export the
Savable to a file. |
void |
save(Savable object,
java.io.OutputStream f)
Export the
Savable to an OutputStream. |
public static final java.lang.String ELEMENT_MAPENTRY
public static final java.lang.String ELEMENT_KEY
public static final java.lang.String ELEMENT_VALUE
public static final java.lang.String ELEMENT_FLOATBUFFER
public static final java.lang.String ATTRIBUTE_SIZE
public void save(Savable object, java.io.OutputStream f) throws java.io.IOException
JmeExporterSavable to an OutputStream.save in interface JmeExporterobject - The savable to exportf - The output streamjava.io.IOException - If an io exception occurs during exportpublic void save(Savable object, java.io.File f) throws java.io.IOException
JmeExporterSavable to a file.save in interface JmeExporterobject - The savable to exportf - The file to export tojava.io.IOException - If an io exception occurs during exportpublic OutputCapsule getCapsule(Savable object)
JmeExporterOutputCapsule for the given savable object.getCapsule in interface JmeExporterobject - The object to retrieve an output capsule for.OutputCapsule for the given savable object.public static XMLExporter getInstance()