|
||||||||||
| 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,
InputStream argInput)
Deserializes a body |
org.jbox2d.dynamics.Fixture |
deserializeFixture(org.jbox2d.dynamics.Body argBody,
InputStream argInput)
Deserializes a fixture |
org.jbox2d.dynamics.joints.Joint |
deserializeJoint(org.jbox2d.dynamics.World argWorld,
InputStream argInput,
Map<Integer,org.jbox2d.dynamics.Body> argBodyMap,
Map<Integer,org.jbox2d.dynamics.joints.Joint> argJointMap)
Deserializes a joint |
org.jbox2d.collision.shapes.Shape |
deserializeShape(InputStream argInput)
Deserializes a shape |
org.jbox2d.dynamics.World |
deserializeWorld(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(InputStream argInput)
throws IOException,
UnsupportedObjectException
argInput -
IOException
UnsupportedObjectException - if a read physics object is unsupported by this librarysetUnsupportedListener(UnsupportedListener)
org.jbox2d.dynamics.Body deserializeBody(org.jbox2d.dynamics.World argWorld,
InputStream argInput)
throws IOException,
UnsupportedObjectException
argWorld - argInput -
IOException
UnsupportedObjectException - if a read physics object is unsupported by this librarysetUnsupportedListener(UnsupportedListener)
org.jbox2d.dynamics.Fixture deserializeFixture(org.jbox2d.dynamics.Body argBody,
InputStream argInput)
throws IOException,
UnsupportedObjectException
argBody - argInput -
IOException
UnsupportedObjectException - if a read physics object is unsupported by this librarysetUnsupportedListener(UnsupportedListener)
org.jbox2d.collision.shapes.Shape deserializeShape(InputStream argInput)
throws IOException,
UnsupportedObjectException
argInput -
IOException
UnsupportedObjectException - if a read physics object is unsupported by this librarysetUnsupportedListener(UnsupportedListener)
org.jbox2d.dynamics.joints.Joint deserializeJoint(org.jbox2d.dynamics.World argWorld,
InputStream argInput,
Map<Integer,org.jbox2d.dynamics.Body> argBodyMap,
Map<Integer,org.jbox2d.dynamics.joints.Joint> argJointMap)
throws IOException,
UnsupportedObjectException
argWorld - argInput - argBodyMap - argJointMap -
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 | |||||||||