|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectflex.messaging.io.amf.AbstractAmfOutput
flex.messaging.io.amfx.AmfxOutput
public class AmfxOutput
Serializes Java types to ActionScript 3 types via AMFX, an XML based representation of AMF 3.
XML is formatted using using UTF-8 encoding.
AmfxMessageSerializer,
AmfxInput| Field Summary |
|---|
| Constructor Summary | |
|---|---|
AmfxOutput(SerializationContext context)
|
|
| Method Summary | |
|---|---|
void |
reset()
Clear all object reference information so that the instance can be used to deserialize another data structure. |
void |
setDebugTrace(AmfTrace trace)
Turns on "trace" debugging for AMF responses. |
void |
writeObject(Object o)
A convenient entry point for writing out any Object for conversion to ActionScript. |
void |
writeObjectEnd()
|
void |
writeObjectProperty(String name,
Object value)
|
void |
writeObjectTraits(TraitsInfo ti)
|
void |
writeUTF(String s)
|
| Methods inherited from class flex.messaging.io.amf.AbstractAmfOutput |
|---|
close, flush, setOutputStream, write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AmfxOutput(SerializationContext context)
| Method Detail |
|---|
public void reset()
public void writeObject(Object o)
throws IOException
ActionMessageOutputThe following is a guide to the Java to ActionScript type mappings:
| Java Type | ActionScript Type (AMF 0) | ActionScript Type (AMF 3 / AMFX) |
| java.lang.String | String | String |
| java.lang.Boolean | Boolean | Boolean |
| java.lang.Integer java.lang.Short java.lang.Byte | Number | int(a) |
| java.lang.Double java.lang.Long java.lang.Float | Number | Number |
| java.util.Calendar java.util.Date | Date(b) | Date(b) |
| java.lang.Character java.lang.Character[] | String | String |
| java.lang.Byte[] | Array (of Numbers) | ByteArray |
| java.util.Collection | mx.collections.ArrayCollection(c) | mx.collections.ArrayCollection(c) |
| java.lang.Object[] (Native Array) | Array | Array |
| java.util.Map java.util.Dictionary | Object(d) | Object(d) |
| java.lang.Object (Other than the above) | Typed Object(e) | Typed Object(e) |
| null | null | null |
(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.
writeObject in interface ActionMessageOutputwriteObject in interface ObjectOutputo - the Object to be written
IOException - if an I/O error occurs
public void writeObjectTraits(TraitsInfo ti)
throws IOException
IOException
public void writeObjectProperty(String name,
Object value)
throws IOException
IOException
public void writeObjectEnd()
throws IOException
IOException
public void writeUTF(String s)
throws IOException
AbstractAmfOutput
writeUTF in interface DataOutputwriteUTF in class AbstractAmfOutputIOExceptionpublic void setDebugTrace(AmfTrace trace)
trace - the trace object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/blazeds/1/javadoc/flex/messaging/io/amfx/AmfxOutput.html