|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface JbSerializer
Serializer for jbox2d, used to serialize any aspect of the physics world
Nested Class Summary | |
---|---|
static interface |
JbSerializer.ObjectSigner
Interface that allows the serializer to look up tags for each object, which can be used later during deserializing by the developer. |
Method Summary | |
---|---|
SerializationResult |
serialize(org.jbox2d.dynamics.Body argBody)
Serializes a body |
SerializationResult |
serialize(org.jbox2d.dynamics.Fixture argFixture)
Serializes a fixture |
SerializationResult |
serialize(org.jbox2d.dynamics.joints.Joint argJoint,
java.util.Map<org.jbox2d.dynamics.Body,java.lang.Integer> argBodyIndexMap,
java.util.Map<org.jbox2d.dynamics.joints.Joint,java.lang.Integer> argJointIndexMap)
Serializes joints. |
SerializationResult |
serialize(org.jbox2d.collision.shapes.Shape argShape)
Serializes a shape |
SerializationResult |
serialize(org.jbox2d.dynamics.World argWorld)
Serializes the world |
void |
setObjectSigner(JbSerializer.ObjectSigner argSigner)
Sets the object signer for the serializer. |
void |
setUnsupportedListener(UnsupportedListener argListener)
Sets a listener for unsupported exception instead of stopping the whole serialization process by throwing and exception. |
Method Detail |
---|
void setObjectSigner(JbSerializer.ObjectSigner argSigner)
argSigner
- void setUnsupportedListener(UnsupportedListener argListener)
argListener
- SerializationResult serialize(org.jbox2d.dynamics.World argWorld) throws UnsupportedObjectException
argWorld
-
UnsupportedObjectException
- if a physics object is unsupported by this library.setUnsupportedListener(UnsupportedListener)
SerializationResult serialize(org.jbox2d.dynamics.Body argBody) throws UnsupportedObjectException
argBody
-
UnsupportedObjectException
- if a physics object is unsupported by this library.setUnsupportedListener(UnsupportedListener)
SerializationResult serialize(org.jbox2d.dynamics.Fixture argFixture) throws UnsupportedObjectException
argFixture
-
UnsupportedObjectException
- if a physics object is unsupported by this library.setUnsupportedListener(UnsupportedListener)
SerializationResult serialize(org.jbox2d.collision.shapes.Shape argShape) throws UnsupportedObjectException
argShape
-
UnsupportedObjectException
- if a physics object is unsupported by this library.setUnsupportedListener(UnsupportedListener)
SerializationResult serialize(org.jbox2d.dynamics.joints.Joint argJoint, java.util.Map<org.jbox2d.dynamics.Body,java.lang.Integer> argBodyIndexMap, java.util.Map<org.jbox2d.dynamics.joints.Joint,java.lang.Integer> argJointIndexMap)
argJoint
- argBodyIndexMap
- argJointIndexMap
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |