加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

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

发布时间:2020-12-15 18:25:33 所属栏目:百科 来源:网络整理
导读:Red5 和 Flex/Flash的数据映射与RemoteObject 有点不同. Flash/Flex与Java之间的数据类型映射,来自red5官方文档: Flash/Flex Java Number any of the Java numeric types int/uint? * any of the non-floating point Java numeric types String String Boo

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

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

Flash/Flex Java
Number any of the Java numeric types
int/uint?* any of the non-floating point Java numeric types
String String
Boolean Boolean/boolean
Array List
Object org.red5.io.utils.ObjectMap
Date java.util.Date
XML org.w3c.dom.Document
ByteArray? org.red5.io.amf3.ByteArray
IExternalizable? org.red5.io.amf3.IExternalizable
ArrayCollection? org.red5.compatibility.flex.messaging.io.ArrayCollection
ObjectProxy? org.red5.compatibility.flex.messaging.io.ObjectProxy
Null null
custom 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.
Java Flash/Flex
any of the Java numeric types Number
any of the non-floating point Java numeric types *
boolean/Boolean Boolean
List/Set Array
Map Array or Object,depends on the Map contents
any objects Object
org.red5.io.utils.ObjectMap java.util.Date Date
org.w3c.dom.Document XML
org.red5.io.amf3.ByteArray org.red5.io.amf3.IExternalizable IExternalizable?*
org.red5.compatibility.flex.messaging.io.ArrayCollection org.red5.compatibility.flex.messaging.io.ObjectProxy null Null
custom 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.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读