|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.threed.jpct.DeSerializer
A class that allows for serialization and deserialization of Object3Ds in a compacted format that loads very fast. The main purpose of this class is to create serialized objects that can be loaded by the Android version of jPCT, because using the normal loaders from Loader on an Android device can be very slow and consumes more memory, which is limited on such a device.
Constructor Summary | |
DeSerializer()
Creates a new DeSerializer. |
Method Summary | |
Object3D |
deserialize(java.io.InputStream is)
Deserializes an Object3D from an InputStream |
Object3D[] |
deserializeArray(java.io.InputStream is)
Deserializes an Object3D-array from an InputStream |
void |
serialize(Object3D obj,
java.io.OutputStream os,
boolean reduced)
Serialize an Object3D. |
void |
serializeArray(Object3D[] objs,
java.io.OutputStream os,
boolean reduced)
Serialize an Object3D-array. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DeSerializer()
Method Detail |
public void serialize(Object3D obj, java.io.OutputStream os, boolean reduced)
obj
- the Object3Dos
- the output stream for write the serialized object intoreduced
- should be true, if the content is used on Android only and
false otherwise.public void serializeArray(Object3D[] objs, java.io.OutputStream os, boolean reduced)
objs
- the Object3D-arrayos
- the output stream for write the serialized objects intoreduced
- should be true, if the content is used on Android only and
false otherwise.public Object3D deserialize(java.io.InputStream is)
is
- the stream
public Object3D[] deserializeArray(java.io.InputStream is)
is
- the stream
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |