public class J3MExporter extends java.lang.Object implements JmeExporter
J3MExporter exporter = new J3MExporter(); exporter.save(material, myFile); //or exporter.save(material, myOutputStream);
Constructor and Description |
---|
J3MExporter()
Create a J3MExporter
|
Modifier and Type | Method and Description |
---|---|
OutputCapsule |
getCapsule(Savable object)
Returns the
OutputCapsule for the given savable object. |
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 void save(Savable object, java.io.OutputStream f) throws java.io.IOException
JmeExporter
Savable
to an OutputStream.save
in interface JmeExporter
object
- 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
JmeExporter
Savable
to a file.save
in interface JmeExporter
object
- The savable to exportf
- The file to export tojava.io.IOException
- If an io exception occurs during exportpublic OutputCapsule getCapsule(Savable object)
JmeExporter
OutputCapsule
for the given savable object.getCapsule
in interface JmeExporter
object
- The object to retrieve an output capsule for.OutputCapsule
for the given savable object.