com.jme3.export
Interface JmeExporter

All Known Implementing Classes:
BinaryExporter, XMLExporter

public interface JmeExporter

JmeExporter specifies an export implementation for jME3 data.


Method Summary
 OutputCapsule getCapsule(Savable object)
          Returns the OutputCapsule for the given savable object.
 boolean save(Savable object, java.io.File f)
          Export the Savable to a file.
 boolean save(Savable object, java.io.OutputStream f)
          Export the Savable to an OutputStream.
 

Method Detail

save

boolean save(Savable object,
             java.io.OutputStream f)
             throws java.io.IOException
Export the Savable to an OutputStream.

Parameters:
object - The savable to export
f - The output stream
Returns:
Always returns true. If an error occurs during export, an exception is thrown
Throws:
java.io.IOException - If an io exception occurs during export

save

boolean save(Savable object,
             java.io.File f)
             throws java.io.IOException
Export the Savable to a file.

Parameters:
object - The savable to export
f - The file to export to
Returns:
Always returns true. If an error occurs during export, an exception is thrown
Throws:
java.io.IOException - If an io exception occurs during export

getCapsule

OutputCapsule getCapsule(Savable object)
Returns the OutputCapsule for the given savable object.

Parameters:
object - The object to retrieve an output capsule for.
Returns:
the OutputCapsule for the given savable object.