Class J3MExporter

java.lang.Object
com.jme3.material.plugin.export.material.J3MExporter
All Implemented Interfaces:
com.jme3.export.JmeExporter

public class J3MExporter extends Object implements com.jme3.export.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);
 
Author:
tsr, nehon (documentation and safety check)
  • Constructor Details

    • J3MExporter

      public J3MExporter()
      Create a J3MExporter
  • Method Details

    • save

      public void save(com.jme3.export.Savable object, OutputStream f) throws IOException
      Specified by:
      save in interface com.jme3.export.JmeExporter
      Throws:
      IOException
    • save

      public void save(com.jme3.export.Savable object, File f) throws IOException
      Specified by:
      save in interface com.jme3.export.JmeExporter
      Throws:
      IOException
    • getCapsule

      public com.jme3.export.OutputCapsule getCapsule(com.jme3.export.Savable object)
      Specified by:
      getCapsule in interface com.jme3.export.JmeExporter