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