flex.messaging.io.amfx
Class AmfxMessageSerializer

java.lang.Object
  extended by flex.messaging.io.amfx.AmfxMessageSerializer
All Implemented Interfaces:
AmfxTypes, MessageSerializer

public class AmfxMessageSerializer
extends Object
implements MessageSerializer, AmfxTypes


Field Summary
static String XML_DIRECTIVE
           
 
Fields inherited from interface flex.messaging.io.amfx.AmfxTypes
AMFX_CLOSE_TAG, AMFX_OPEN_TAG, AMFX_TYPE, ARRAY_CLOSE_TAG, ARRAY_OPEN_TAG, ARRAY_TYPE, AVM_PLUS_XML_TYPE, BODY_CLOSE_TAG, BODY_OPEN_TAG, BODY_TYPE, BYTE_ARRAY_CLOSE_TAG, BYTE_ARRAY_OPEN_TAG, BYTE_ARRAY_TYPE, DATE_CLOSE_TAG, DATE_OPEN_TAG, DATE_TYPE, DOUBLE_CLOSE_TAG, DOUBLE_OPEN_TAG, DOUBLE_TYPE, EMPTY_STRING_TAG, EMPTY_TRAITS_TAG, FALSE_TAG, FALSE_TYPE, HEADER_CLOSE_TAG, HEADER_OPEN_TAG, HEADER_TYPE, INTEGER_CLOSE_TAG, INTEGER_OPEN_TAG, INTEGER_TYPE, ITEM_CLOSE_TAG, ITEM_OPEN_TAG, ITEM_TYPE, NULL_TAG, NULL_TYPE, OBJECT_CLOSE_TAG, OBJECT_OPEN_TAG, OBJECT_TYPE, REF_TYPE, STRING_CLOSE_TAG, STRING_OPEN_TAG, STRING_TYPE, TRAITS_CLOSE_TAG, TRAITS_EXTERNALIZALBE_TAG, TRAITS_OPEN_TAG, TRAITS_TYPE, TRUE_TAG, TRUE_TYPE, UNDEFINED_TAG, UNDEFINED_TYPE, UTF_8, XML_CLOSE_TAG, XML_DOC_CLOSE_TAG, XML_DOC_OPEN_TAG, XML_OPEN_TAG, XML_TYPE
 
Constructor Summary
AmfxMessageSerializer()
           
 
Method Summary
 void initialize(SerializationContext context, OutputStream out, AmfTrace trace)
          Establishes the context for writing out data to the given OutputStream.
 void setVersion(int value)
           
 void writeMessage(ActionMessage m)
           
 void writeObject(Object value)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

XML_DIRECTIVE

public static final String XML_DIRECTIVE
See Also:
Constant Field Values
Constructor Detail

AmfxMessageSerializer

public AmfxMessageSerializer()
Method Detail

setVersion

public void setVersion(int value)
Specified by:
setVersion in interface MessageSerializer
Parameters:
value - - The default version of AMFX encoding to be used.

initialize

public void initialize(SerializationContext context,
                       OutputStream out,
                       AmfTrace trace)
Establishes the context for writing out data to the given OutputStream. A null value can be passed for the trace parameter if a record of the AMFX data should not be made.

Specified by:
initialize in interface MessageSerializer
Parameters:
context - The SerializationContext specifying the custom options.
out - The OutputStream to write out the AMFX data.
trace - If not null, turns on "trace" debugging for AMFX responses.

writeMessage

public void writeMessage(ActionMessage m)
                  throws IOException
Specified by:
writeMessage in interface MessageSerializer
Throws:
IOException

writeObject

public void writeObject(Object value)
                 throws IOException
Specified by:
writeObject in interface MessageSerializer
Throws:
IOException


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/amfx/AmfxMessageSerializer.html