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 theOutputCapsule
for the given savable object.default void
Export theSavable
to a file.void
Export theSavable
to a file.void
save
(Savable object, OutputStream f) Export theSavable
to an OutputStream.
-
Method Details
-
save
Export theSavable
to an OutputStream.- Parameters:
object
- The savable to exportf
- The output stream- Throws:
IOException
- If an io exception occurs during export
-
save
Export theSavable
to 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 theSavable
to a file. If the path to the file doesn't exist, the parent directories can be created if thecreateDirectories
flag is true. If the path does not exist andcreateDirectories
is 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 theOutputCapsule
for the given savable object.- Parameters:
object
- The object to retrieve an output capsule for.- Returns:
- the
OutputCapsule
for the given savable object.
-