Packageaway3d.tools.serialize
Classpublic class SerializerBase
InheritanceSerializerBase Inheritance Object
Subclasses TraceSerializer

SerializerBase is the abstract class for all Serializers. It provides an interface for basic data type writing. It is not intended for reading.

See also

away3d.tools.serialize.Serialize


Public Methods
 MethodDefined By
  
Creates a new SerializerBase object.
SerializerBase
  
beginObject(className:String, instanceName:String):void
Begin object serialization.
SerializerBase
  
endObject():void
End object serialization
SerializerBase
  
writeBoolean(name:String, value:Boolean):void
Serialize Boolean
SerializerBase
  
writeInt(name:String, value:int):void
Serialize int
SerializerBase
  
writeQuaternion(name:String, value:Quaternion):void
Serialize Quaternion
SerializerBase
  
writeString(name:String, value:String):void
Serialize String
SerializerBase
  
writeTransform(name:String, value:Vector.<Number>):void
Serialize Transform, in the form of Vector.<Number>
SerializerBase
  
writeUint(name:String, value:uint):void
Serialize uint
SerializerBase
  
writeVector3D(name:String, value:Vector3D):void
Serialize Vector3D
SerializerBase
Constructor Detail
SerializerBase()Constructor
public function SerializerBase()

Creates a new SerializerBase object.

Method Detail
beginObject()method
public function beginObject(className:String, instanceName:String):void

Begin object serialization. Output className and instanceName.

Parameters

className:String — name of class being serialized
 
instanceName:String — name of instance being serialized

endObject()method 
public function endObject():void

End object serialization

writeBoolean()method 
public function writeBoolean(name:String, value:Boolean):void

Serialize Boolean

Parameters

name:String — name of value being serialized
 
value:Boolean — value being serialized

writeInt()method 
public function writeInt(name:String, value:int):void

Serialize int

Parameters

name:String — name of value being serialized
 
value:int — value being serialized

writeQuaternion()method 
public function writeQuaternion(name:String, value:Quaternion):void

Serialize Quaternion

Parameters

name:String — name of value being serialized
 
value:Quaternion — value being serialized

writeString()method 
public function writeString(name:String, value:String):void

Serialize String

Parameters

name:String — name of value being serialized
 
value:String — value being serialized

writeTransform()method 
public function writeTransform(name:String, value:Vector.<Number>):void

Serialize Transform, in the form of Vector.<Number>

Parameters

name:String — name of value being serialized
 
value:Vector.<Number> — value being serialized

writeUint()method 
public function writeUint(name:String, value:uint):void

Serialize uint

Parameters

name:String — name of value being serialized
 
value:uint — value being serialized

writeVector3D()method 
public function writeVector3D(name:String, value:Vector3D):void

Serialize Vector3D

Parameters

name:String — name of value being serialized
 
value:Vector3D — value being serialized