Package com.jme3.export
Interface JmeExporter
- All Known Implementing Classes:
BinaryExporter,J3MExporter,XMLExporter
public interface JmeExporter
JmeExporter specifies an export implementation for jME3
data.-
Method Summary
Modifier and TypeMethodDescriptiongetCapsule(Savable object) Returns theOutputCapsulefor the given savable object.default voidExport theSavableto a file.voidExport theSavableto a file.voidsave(Savable object, OutputStream f) Export theSavableto an OutputStream.
-
Method Details
-
save
Export theSavableto an OutputStream.- Parameters:
object- The savable to exportf- The output stream- Throws:
IOException- If an io exception occurs during export
-
save
Export theSavableto a file. If the path to the file doesn't exist, the directories are made.- Parameters:
object- The savable to exportf- The file to export to- Throws:
IOException- If an io exception occurs during export
-
save
Export theSavableto a file. If the path to the file doesn't exist, the parent directories can be created if thecreateDirectoriesflag is true. If the path does not exist andcreateDirectoriesis false, then an exception is thrown.- Parameters:
object- The savable to exportf- The file to export tocreateDirectories- flag to indicate if the directories should be created- Throws:
IOException- If an io exception occurs during export
-
getCapsule
Returns theOutputCapsulefor the given savable object.- Parameters:
object- The object to retrieve an output capsule for.- Returns:
- the
OutputCapsulefor the given savable object.
-