flex.messaging.io.amf
Class Amf0Output

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

public class Amf0Output
extends AbstractAmfOutput
implements AmfTypes


Field Summary
 
Fields inherited from interface flex.messaging.io.amf.AmfTypes
kAvmPlusObjectType, kBooleanType, kDateType, kECMAArrayType, kLongStringType, kMovieClipType, kNullType, kNumberType, kObjectEndType, kObjectType, kRecordsetType, kReferenceType, kStrictArrayType, kStringType, kTypedObjectType, kUndefinedType, kUnsupportedType, kXMLObjectType
 
Constructor Summary
Amf0Output(SerializationContext context)
          Construct a serializer without connecting it to an output stream.
 
Method Summary
 void reset()
          Reset all object reference information allowing the class to be used to write a "new" data structure.
 void setAvmPlus(boolean a)
          Set to true if the AMF0 stream should switch to use AMF3 on encountering the first complex Object during serialization.
 void setDebugTrace(AmfTrace trace)
          Turns on "trace" debugging for AMF responses.
 void writeObject(Object o)
          Serialize an Object using AMF 0.
 
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

Amf0Output

public Amf0Output(SerializationContext context)
Construct a serializer without connecting it to an output stream.

Method Detail

setAvmPlus

public void setAvmPlus(boolean a)
Set to true if the AMF0 stream should switch to use AMF3 on encountering the first complex Object during serialization.

Parameters:
a - Whether the client is running in AVMPlus and can handle AMF3 encoding.

reset

public void reset()
Reset all object reference information allowing the class to be used to write a "new" data structure.


writeObject

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

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

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/Amf0Output.html