Class J3MExporter
java.lang.Object
com.jme3.material.plugin.export.material.J3MExporter
- All Implemented Interfaces:
JmeExporter
Saves a Material to a j3m file with proper formatting.
usage is :
J3MExporter exporter = new J3MExporter(); exporter.save(material, myFile); //or exporter.save(material, myOutputStream);
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetCapsule
(Savable object) Returns theOutputCapsule
for the given savable object.void
Export theSavable
to a file.void
save
(Savable object, OutputStream f) Export theSavable
to an OutputStream.
-
Constructor Details
-
J3MExporter
public J3MExporter()Create a J3MExporter
-
-
Method Details
-
save
Description copied from interface:JmeExporter
Export theSavable
to an OutputStream.- Specified by:
save
in interfaceJmeExporter
- Parameters:
object
- The savable to exportf
- The output stream- Throws:
IOException
- If an io exception occurs during export
-
save
Description copied from interface:JmeExporter
Export theSavable
to a file.- Specified by:
save
in interfaceJmeExporter
- Parameters:
object
- The savable to exportf
- The file to export to- Throws:
IOException
- If an io exception occurs during export
-
getCapsule
Description copied from interface:JmeExporter
Returns theOutputCapsule
for the given savable object.- Specified by:
getCapsule
in interfaceJmeExporter
- Parameters:
object
- The object to retrieve an output capsule for.- Returns:
- the
OutputCapsule
for the given savable object.
-