flex.messaging.io.amf
Class Amf3Output

java.lang.Object
  extended by flex.messaging.io.amf.AbstractAmfOutput
      extended by flex.messaging.io.amf.Amf3Output
All Implemented Interfaces:
ActionMessageOutput, Amf3Types, DataOutput, ObjectOutput

public class Amf3Output
extends AbstractAmfOutput
implements Amf3Types

Serializes data to an output stream using the new AMF 3 format.

This class intends to match the Flash Player 8 C++ code in avmglue/DataIO.cpp


Field Summary
 
Fields inherited from interface flex.messaging.io.amf.Amf3Types
EMPTY_STRING, INT28_MAX_VALUE, INT28_MIN_VALUE, kArrayType, kAvmPlusXmlType, kByteArrayType, kDateType, kDoubleType, kFalseType, kIntegerType, kNullType, kObjectType, kStringType, kTrueType, kUndefinedType, kXMLType
 
Constructor Summary
Amf3Output(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)
          Serialize an Object using AMF 3.
 void writeObjectEnd()
           
 void writeObjectProperty(String name, Object value)
           
 void writeObjectTraits(TraitsInfo ti)
           
 
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, writeUTF
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Amf3Output

public Amf3Output(SerializationContext context)
Method Detail

reset

public void reset()
Clear all object reference information so that the instance can be used to deserialize another data structure. Reset should be called before reading a top level object, such as a new header or a new body.


writeObject

public void writeObject(Object o)
                 throws IOException
Serialize an Object using AMF 3.

Specified by:
writeObject in interface ActionMessageOutput
Specified by:
writeObject in interface ObjectOutput
Parameters:
o - the Object to be written
Throws:
IOException - if an I/O error occurs

writeObjectTraits

public void writeObjectTraits(TraitsInfo ti)
                       throws IOException
Throws:
IOException

writeObjectProperty

public void writeObjectProperty(String name,
                                Object value)
                         throws IOException
Throws:
IOException

writeObjectEnd

public void writeObjectEnd()
                    throws IOException
Throws:
IOException

setDebugTrace

public void setDebugTrace(AmfTrace trace)
Turns on "trace" debugging for AMF responses.



Copyright © 2008 Adobe Systems Inc. All Rights Reserved.

 

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/amf/Amf3Output.html