org.jbox2d.serialization.pb
Class PbDeserializer

java.lang.Object
  extended by org.jbox2d.serialization.pb.PbDeserializer
All Implemented Interfaces:
JbDeserializer

public class PbDeserializer
extends Object
implements JbDeserializer


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

PbDeserializer

public PbDeserializer()

PbDeserializer

public PbDeserializer(UnsupportedListener argListener)

PbDeserializer

public PbDeserializer(JbDeserializer.ObjectListener argObjectListner)

PbDeserializer

public PbDeserializer(UnsupportedListener argListener,
                      JbDeserializer.ObjectListener argObjectListner)
Method Detail

setObjectListener

public void setObjectListener(JbDeserializer.ObjectListener argListener)
Description copied from interface: JbDeserializer
Sets the object listener, which allows the user to process each physics object with a tag to do any sort of custom logic.

Specified by:
setObjectListener in interface JbDeserializer

setUnsupportedListener

public void setUnsupportedListener(UnsupportedListener argListener)
Description copied from interface: JbDeserializer
Sets a listener for unsupported exceptions instead of stopping the whole deserialization process by throwing and exception.

Specified by:
setUnsupportedListener in interface JbDeserializer

deserializeWorld

public org.jbox2d.dynamics.World deserializeWorld(InputStream argInput)
                                           throws IOException
Description copied from interface: JbDeserializer
Deserializes a world

Specified by:
deserializeWorld in interface JbDeserializer
Returns:
Throws:
IOException
See Also:
JbDeserializer.setUnsupportedListener(UnsupportedListener)

deserializeWorld

public org.jbox2d.dynamics.World deserializeWorld(Box2D.PbWorld pbWorld)

deserializeBody

public org.jbox2d.dynamics.Body deserializeBody(org.jbox2d.dynamics.World argWorld,
                                                InputStream argInput)
                                         throws IOException
Description copied from interface: JbDeserializer
Deserializes a body

Specified by:
deserializeBody in interface JbDeserializer
Returns:
Throws:
IOException
See Also:
JbDeserializer.setUnsupportedListener(UnsupportedListener)

deserializeBody

public org.jbox2d.dynamics.Body deserializeBody(org.jbox2d.dynamics.World argWorld,
                                                Box2D.PbBody argBody)

deserializeFixture

public org.jbox2d.dynamics.Fixture deserializeFixture(org.jbox2d.dynamics.Body argBody,
                                                      InputStream argInput)
                                               throws IOException
Description copied from interface: JbDeserializer
Deserializes a fixture

Specified by:
deserializeFixture in interface JbDeserializer
Returns:
Throws:
IOException
See Also:
JbDeserializer.setUnsupportedListener(UnsupportedListener)

deserializeFixture

public org.jbox2d.dynamics.Fixture deserializeFixture(org.jbox2d.dynamics.Body argBody,
                                                      Box2D.PbFixture argFixture)

deserializeShape

public org.jbox2d.collision.shapes.Shape deserializeShape(InputStream argInput)
                                                   throws IOException
Description copied from interface: JbDeserializer
Deserializes a shape

Specified by:
deserializeShape in interface JbDeserializer
Returns:
Throws:
IOException
See Also:
JbDeserializer.setUnsupportedListener(UnsupportedListener)

deserializeShape

public org.jbox2d.collision.shapes.Shape deserializeShape(Box2D.PbShape argShape)

deserializeJoint

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
Description copied from interface: JbDeserializer
Deserializes a joint

Specified by:
deserializeJoint in interface JbDeserializer
Returns:
Throws:
IOException
See Also:
JbDeserializer.setUnsupportedListener(UnsupportedListener)

deserializeJoint

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)


Copyright © 2013. All Rights Reserved.