org.codehaus.enunciate.modules.amf
Class EnunciateAMFDataWriter

java.lang.Object
  extended by org.codehaus.enunciate.modules.amf.EnunciateAMFDataWriter
All Implemented Interfaces:
AMFDataWriter

public class EnunciateAMFDataWriter
extends java.lang.Object
implements AMFDataWriter

An AMF data reader that assumes Enunciate-generated JAXB beans.

Author:
Ryan Heaton

Constructor Summary
EnunciateAMFDataWriter()
           
 
Method Summary
 boolean isWriteable(java.lang.Class realType, java.lang.reflect.Type genericType)
          Whether an object of the specified type is writeable from a stream.
 void writeTo(java.lang.Object obj, java.lang.Class realType, java.lang.reflect.Type genericType, java.io.OutputStream stream)
          Write the object to the specified stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnunciateAMFDataWriter

public EnunciateAMFDataWriter()
Method Detail

isWriteable

public boolean isWriteable(java.lang.Class realType,
                           java.lang.reflect.Type genericType)
Description copied from interface: AMFDataWriter
Whether an object of the specified type is writeable from a stream.

Specified by:
isWriteable in interface AMFDataWriter
Parameters:
realType - The real type of the object.
genericType - The declared generic type to which the object is to conform.
Returns:
Whether an object of the specified type is writeable from a stream.

writeTo

public void writeTo(java.lang.Object obj,
                    java.lang.Class realType,
                    java.lang.reflect.Type genericType,
                    java.io.OutputStream stream)
             throws java.io.IOException
Description copied from interface: AMFDataWriter
Write the object to the specified stream.

Specified by:
writeTo in interface AMFDataWriter
Parameters:
obj - The object to write.
realType - The real type of the object.
genericType - The generic type of the object.
stream - The stream to write to.
Throws:
java.io.IOException