|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jbox2d.serialization.pb.PbDeserializer
public class PbDeserializer
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.jbox2d.serialization.JbDeserializer |
---|
JbDeserializer.ObjectListener |
Constructor Summary | |
---|---|
PbDeserializer()
|
|
PbDeserializer(JbDeserializer.ObjectListener argObjectListner)
|
|
PbDeserializer(UnsupportedListener argListener)
|
|
PbDeserializer(UnsupportedListener argListener,
JbDeserializer.ObjectListener argObjectListner)
|
Method Summary | |
---|---|
org.jbox2d.dynamics.Body |
deserializeBody(org.jbox2d.dynamics.World argWorld,
Box2D.PbBody argBody)
|
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,
Box2D.PbFixture argFixture)
|
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,
Box2D.PbJoint joint,
Map<Integer,org.jbox2d.dynamics.Body> argBodyMap,
Map<Integer,org.jbox2d.dynamics.joints.Joint> jointMap)
|
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> jointMap)
Deserializes a joint |
org.jbox2d.collision.shapes.Shape |
deserializeShape(Box2D.PbShape argShape)
|
org.jbox2d.collision.shapes.Shape |
deserializeShape(InputStream argInput)
Deserializes a shape |
org.jbox2d.dynamics.World |
deserializeWorld(Box2D.PbWorld pbWorld)
|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PbDeserializer()
public PbDeserializer(UnsupportedListener argListener)
public PbDeserializer(JbDeserializer.ObjectListener argObjectListner)
public PbDeserializer(UnsupportedListener argListener, JbDeserializer.ObjectListener argObjectListner)
Method Detail |
---|
public void setObjectListener(JbDeserializer.ObjectListener argListener)
JbDeserializer
setObjectListener
in interface JbDeserializer
public void setUnsupportedListener(UnsupportedListener argListener)
JbDeserializer
setUnsupportedListener
in interface JbDeserializer
public org.jbox2d.dynamics.World deserializeWorld(InputStream argInput) throws IOException
JbDeserializer
deserializeWorld
in interface JbDeserializer
IOException
JbDeserializer.setUnsupportedListener(UnsupportedListener)
public org.jbox2d.dynamics.World deserializeWorld(Box2D.PbWorld pbWorld)
public org.jbox2d.dynamics.Body deserializeBody(org.jbox2d.dynamics.World argWorld, InputStream argInput) throws IOException
JbDeserializer
deserializeBody
in interface JbDeserializer
IOException
JbDeserializer.setUnsupportedListener(UnsupportedListener)
public org.jbox2d.dynamics.Body deserializeBody(org.jbox2d.dynamics.World argWorld, Box2D.PbBody argBody)
public org.jbox2d.dynamics.Fixture deserializeFixture(org.jbox2d.dynamics.Body argBody, InputStream argInput) throws IOException
JbDeserializer
deserializeFixture
in interface JbDeserializer
IOException
JbDeserializer.setUnsupportedListener(UnsupportedListener)
public org.jbox2d.dynamics.Fixture deserializeFixture(org.jbox2d.dynamics.Body argBody, Box2D.PbFixture argFixture)
public org.jbox2d.collision.shapes.Shape deserializeShape(InputStream argInput) throws IOException
JbDeserializer
deserializeShape
in interface JbDeserializer
IOException
JbDeserializer.setUnsupportedListener(UnsupportedListener)
public org.jbox2d.collision.shapes.Shape deserializeShape(Box2D.PbShape argShape)
public 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> jointMap) throws IOException
JbDeserializer
deserializeJoint
in interface JbDeserializer
IOException
JbDeserializer.setUnsupportedListener(UnsupportedListener)
public org.jbox2d.dynamics.joints.Joint deserializeJoint(org.jbox2d.dynamics.World argWorld, Box2D.PbJoint joint, Map<Integer,org.jbox2d.dynamics.Body> argBodyMap, Map<Integer,org.jbox2d.dynamics.joints.Joint> jointMap)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |