Flash/Flex与Java之间的数据类型映射(Red5)

来源:互联网 发布:淘宝商标注册 编辑:程序博客网 时间:2024/05/21 06:17

Red5 和 Flex/Flash的数据映射与RemoteObject 有点不同.

Flash/Flex与Java之间的数据类型映射,来自red5官方文档:

Flash/FlexJavaNumberany of the Java numeric typesint/uint *any of the non-floating point Java numeric typesStringStringBooleanBoolean/booleanArrayListObjectorg.red5.io.utils.ObjectMapDatejava.util.DateXMLorg.w3c.dom.DocumentByteArray *org.red5.io.amf3.ByteArrayIExternalizable *org.red5.io.amf3.IExternalizableArrayCollection *org.red5.compatibility.flex.messaging.io.ArrayCollectionObjectProxy *org.red5.compatibility.flex.messaging.io.ObjectProxyNullnullcustom class **custom class  Please note that Red5 performs automatic parameter conversion, e.g. if you pass a number to a method that takes a String as parameter, it is automatically converted.JavaFlash/Flexany of the Java numeric typesNumberany of the non-floating point Java numeric typesint/uint *StringStringboolean/BooleanBooleanList/SetArrayMapArray or Object, depends on the Map contentsany objectsObjectorg.red5.io.utils.ObjectMapObjectjava.util.DateDateorg.w3c.dom.DocumentXMLorg.red5.io.amf3.ByteArrayByteArray *org.red5.io.amf3.IExternalizableIExternalizable *org.red5.compatibility.flex.messaging.io.ArrayCollectionArrayCollection *org.red5.compatibility.flex.messaging.io.ObjectProxyObjectProxy *nullNullcustom classcustom class **

  * = Only available in Flash Player 9 or newer (AMF3) ** = You can map the class to serialize to in Red5 by adding "[RemoteClass(alias="package.to.RemoteClass")]" above your Flex class definition.

 

原创粉丝点击