Packageflex.messaging.io.amf
Interfacepublic interface ActionMessageOutput

Entry point for serializing an individual ActionMessage response message for AMF, AMFX or RTMP Channels.

See also

Classic Version 0 Deserializer
AVM+ Version 3 Deserializer
The serialization equivalent


Public Methods
 MethodDefined By
  
void writeObject(Object object)
A convenient entry point for writing out any Object for conversion to ActionScript.
ActionMessageOutput
Method Detail
writeObject()
public void writeObject(Object object)

A convenient entry point for writing out any Object for conversion to ActionScript. The Java class type of the Object will determine the corresponding ActionScript type that will be specified in the AMF stream.

The following is a guide to the Java to ActionScript type mappings:

Java TypeActionScript Type (AMF 0)ActionScript Type (AMF 3 / AMFX)
java.lang.StringStringString
java.lang.BooleanBooleanBoolean
java.lang.Integerjava.lang.Shortjava.lang.ByteNumberint(a)
java.lang.Doublejava.lang.Longjava.lang.FloatNumberNumber
java.util.Calendarjava.util.DateDate(b)Date(b)
java.lang.Characterjava.lang.Character[]StringString
java.lang.Byte[]Array (of Numbers)ByteArray
java.util.Collectionmx.collections.ArrayCollection(c)mx.collections.ArrayCollection(c)
java.lang.Object[] (Native Array)ArrayArray
java.util.Mapjava.util.DictionaryObject(d)Object(d)
java.lang.Object (Other than the above)Typed Object(e)Typed Object(e)
nullnullnull

(a) - For AMF 3 ints, taking sign into consideration, if i < 0xF0000000 || i > 0x0FFFFFFF. then value is promoted to Number. (b) - Dates are sent in the UTC timezone. Clients and servers must adjust time accordingly for timezones. (c) - Channel serialization configuration can be set to support legacy Collection to ActionScript Array conversion. (d) - Channel serialization configuration can be set to support legacy Map to ActionScript Array (associative) conversion. (e) - Objects are serialized using Java Bean introspection rules. Fields that are static, transient or non-public are excluded.

Parameters

object — the Object to be written


Throws
IOException — if an I/O error occurs




 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/livecycle/8.2/programLC/programmer/javadoc/flex/messaging/io/amf/ActionMessageOutput.html