weborb.writer
Class MessageWriter

java.lang.Object
  extended by weborb.writer.MessageWriter

public class MessageWriter
extends java.lang.Object

MessageWriter

Author:
Midnight Coders, LLC

Constructor Summary
MessageWriter()
           
 
Method Summary
static void addTypeWriter(java.lang.Class clazz, ITypeWriter typeWriter)
          Add a writer and map it to the class
static ITypeWriter getWriter(java.lang.Class clazz, IProtocolFormatter formatter, boolean checkInterfaces)
           
static void ignoreClass(java.lang.String className)
           
static boolean isIgnored(java.lang.String className)
           
static void removeTypeWriter(java.lang.Class clazz)
           
static void resetCash()
           
static void writeObject(java.lang.Object object, IProtocolFormatter formatter)
          Serialize object accordingly to the AMF serialization protocol.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageWriter

public MessageWriter()
Method Detail

ignoreClass

public static void ignoreClass(java.lang.String className)
Parameters:
className -

addTypeWriter

public static void addTypeWriter(java.lang.Class clazz,
                                 ITypeWriter typeWriter)
Add a writer and map it to the class

Parameters:
clazz - class to map the writer to
typeWriter - writer object to register with the engine.

removeTypeWriter

public static void removeTypeWriter(java.lang.Class clazz)

isIgnored

public static boolean isIgnored(java.lang.String className)
Parameters:
className -
Returns:

writeObject

public static void writeObject(java.lang.Object object,
                               IProtocolFormatter formatter)
                        throws java.io.IOException
Serialize object accordingly to the AMF serialization protocol. All output is written to the output stream

Parameters:
object - object to serialize
formatter - protocol formatter encapsulating the knowledge of the on-the-wire-protocol
Throws:
java.io.IOException

resetCash

public static void resetCash()

getWriter

public static ITypeWriter getWriter(java.lang.Class clazz,
                                    IProtocolFormatter formatter,
                                    boolean checkInterfaces)


Discuss WebORB

Copyright 2003-2008 Midnight Coders, Inc. All Rights Reserved.