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 Summary

    Constructors
    Constructor
    Description
    Create a J3MExporter
  • Method Summary

    Modifier and Type
    Method
    Description
    com.jme3.export.OutputCapsule
    getCapsule(com.jme3.export.Savable object)
     
    void
    save(com.jme3.export.Savable object, File f, boolean createDirectories)
     
    void
    save(com.jme3.export.Savable object, OutputStream f)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.jme3.export.JmeExporter

    save
  • 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, boolean createDirectories) 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