|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jbox2d.serialization.pb.PbSerializer
public class PbSerializer
Protobuffer serializer implementation.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.jbox2d.serialization.JbSerializer |
---|
JbSerializer.ObjectSigner |
Constructor Summary | |
---|---|
PbSerializer()
|
|
PbSerializer(JbSerializer.ObjectSigner argSigner)
|
|
PbSerializer(UnsupportedListener argListener)
|
|
PbSerializer(UnsupportedListener argListener,
JbSerializer.ObjectSigner argSigner)
|
Method Summary | |
---|---|
SerializationResult |
serialize(org.jbox2d.dynamics.Body argBody)
Serializes a body |
SerializationResult |
serialize(org.jbox2d.dynamics.Fixture argFixture)
Serializes a fixture |
SerializationResult |
serialize(org.jbox2d.dynamics.joints.Joint argJoint,
Map<org.jbox2d.dynamics.Body,Integer> argBodyIndexMap,
Map<org.jbox2d.dynamics.joints.Joint,Integer> argJointIndexMap)
Serializes joints. |
SerializationResult |
serialize(org.jbox2d.collision.shapes.Shape argShape)
Serializes a shape |
SerializationResult |
serialize(org.jbox2d.dynamics.World argWorld)
Serializes the world |
Box2D.PbBody.Builder |
serializeBody(org.jbox2d.dynamics.Body argBody)
|
Box2D.PbFilter.Builder |
serializeFilter(org.jbox2d.dynamics.Filter argFilter)
|
Box2D.PbFixture.Builder |
serializeFixture(org.jbox2d.dynamics.Fixture argFixture)
|
Box2D.PbJoint.Builder |
serializeJoint(org.jbox2d.dynamics.joints.Joint joint,
Map<org.jbox2d.dynamics.Body,Integer> argBodyIndexMap,
Map<org.jbox2d.dynamics.joints.Joint,Integer> argJointIndexMap)
|
Box2D.PbShape.Builder |
serializeShape(org.jbox2d.collision.shapes.Shape argShape)
|
Box2D.PbWorld.Builder |
serializeWorld(org.jbox2d.dynamics.World argWorld)
|
void |
setObjectSigner(JbSerializer.ObjectSigner argSigner)
Sets the object signer for the serializer. |
void |
setUnsupportedListener(UnsupportedListener argListener)
Sets a listener for unsupported exception instead of stopping the whole serialization 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 PbSerializer()
public PbSerializer(UnsupportedListener argListener)
public PbSerializer(JbSerializer.ObjectSigner argSigner)
public PbSerializer(UnsupportedListener argListener, JbSerializer.ObjectSigner argSigner)
Method Detail |
---|
public void setObjectSigner(JbSerializer.ObjectSigner argSigner)
JbSerializer
setObjectSigner
in interface JbSerializer
public void setUnsupportedListener(UnsupportedListener argListener)
JbSerializer
setUnsupportedListener
in interface JbSerializer
public SerializationResult serialize(org.jbox2d.dynamics.World argWorld)
JbSerializer
serialize
in interface JbSerializer
JbSerializer.setUnsupportedListener(UnsupportedListener)
public Box2D.PbWorld.Builder serializeWorld(org.jbox2d.dynamics.World argWorld)
public SerializationResult serialize(org.jbox2d.dynamics.Body argBody)
JbSerializer
serialize
in interface JbSerializer
JbSerializer.setUnsupportedListener(UnsupportedListener)
public Box2D.PbBody.Builder serializeBody(org.jbox2d.dynamics.Body argBody)
public SerializationResult serialize(org.jbox2d.dynamics.Fixture argFixture)
JbSerializer
serialize
in interface JbSerializer
JbSerializer.setUnsupportedListener(UnsupportedListener)
public Box2D.PbFixture.Builder serializeFixture(org.jbox2d.dynamics.Fixture argFixture)
public SerializationResult serialize(org.jbox2d.collision.shapes.Shape argShape)
JbSerializer
serialize
in interface JbSerializer
JbSerializer.setUnsupportedListener(UnsupportedListener)
public Box2D.PbShape.Builder serializeShape(org.jbox2d.collision.shapes.Shape argShape)
public SerializationResult serialize(org.jbox2d.dynamics.joints.Joint argJoint, Map<org.jbox2d.dynamics.Body,Integer> argBodyIndexMap, Map<org.jbox2d.dynamics.joints.Joint,Integer> argJointIndexMap)
JbSerializer
serialize
in interface JbSerializer
public Box2D.PbJoint.Builder serializeJoint(org.jbox2d.dynamics.joints.Joint joint, Map<org.jbox2d.dynamics.Body,Integer> argBodyIndexMap, Map<org.jbox2d.dynamics.joints.Joint,Integer> argJointIndexMap)
public Box2D.PbFilter.Builder serializeFilter(org.jbox2d.dynamics.Filter argFilter)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |