|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface JbDeserializer
Nested Class Summary | |
---|---|
static interface |
JbDeserializer.ObjectListener
Called for each physics object with a tag defined. |
Method Summary | |
---|---|
org.jbox2d.dynamics.Body |
deserializeBody(org.jbox2d.dynamics.World argWorld,
java.io.InputStream argInput)
Deserializes a body |
org.jbox2d.dynamics.Fixture |
deserializeFixture(org.jbox2d.dynamics.Body argBody,
java.io.InputStream argInput)
Deserializes a fixture |
org.jbox2d.dynamics.joints.Joint |
deserializeJoint(org.jbox2d.dynamics.World argWorld,
java.io.InputStream argInput,
java.util.Map<java.lang.Integer,org.jbox2d.dynamics.Body> argBodyMap,
java.util.Map<java.lang.Integer,org.jbox2d.dynamics.joints.Joint> argJointMap)
Deserializes a joint |
org.jbox2d.collision.shapes.Shape |
deserializeShape(java.io.InputStream argInput)
Deserializes a shape |
org.jbox2d.dynamics.World |
deserializeWorld(java.io.InputStream argInput)
Deserializes a world |
void |
setObjectListener(JbDeserializer.ObjectListener argListener)
Sets the object listener, which allows the user to process each physics object with a tag to do any sort of custom logic. |
void |
setUnsupportedListener(UnsupportedListener argListener)
Sets a listener for unsupported exceptions instead of stopping the whole deserialization process by throwing and exception. |
Method Detail |
---|
void setObjectListener(JbDeserializer.ObjectListener argListener)
argListener
- void setUnsupportedListener(UnsupportedListener argListener)
argListener
- org.jbox2d.dynamics.World deserializeWorld(java.io.InputStream argInput) throws java.io.IOException, UnsupportedObjectException
argInput
-
java.io.IOException
UnsupportedObjectException
- if a read physics object is unsupported by this librarysetUnsupportedListener(UnsupportedListener)
org.jbox2d.dynamics.Body deserializeBody(org.jbox2d.dynamics.World argWorld, java.io.InputStream argInput) throws java.io.IOException, UnsupportedObjectException
argWorld
- argInput
-
java.io.IOException
UnsupportedObjectException
- if a read physics object is unsupported by this librarysetUnsupportedListener(UnsupportedListener)
org.jbox2d.dynamics.Fixture deserializeFixture(org.jbox2d.dynamics.Body argBody, java.io.InputStream argInput) throws java.io.IOException, UnsupportedObjectException
argBody
- argInput
-
java.io.IOException
UnsupportedObjectException
- if a read physics object is unsupported by this librarysetUnsupportedListener(UnsupportedListener)
org.jbox2d.collision.shapes.Shape deserializeShape(java.io.InputStream argInput) throws java.io.IOException, UnsupportedObjectException
argInput
-
java.io.IOException
UnsupportedObjectException
- if a read physics object is unsupported by this librarysetUnsupportedListener(UnsupportedListener)
org.jbox2d.dynamics.joints.Joint deserializeJoint(org.jbox2d.dynamics.World argWorld, java.io.InputStream argInput, java.util.Map<java.lang.Integer,org.jbox2d.dynamics.Body> argBodyMap, java.util.Map<java.lang.Integer,org.jbox2d.dynamics.joints.Joint> argJointMap) throws java.io.IOException, UnsupportedObjectException
argWorld
- argInput
- argBodyMap
- argJointMap
-
java.io.IOException
UnsupportedObjectException
- if a read physics object is unsupported by this librarysetUnsupportedListener(UnsupportedListener)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |