org.codehaus.enunciate.modules.amf
Interface AMFDataWriter

All Known Implementing Classes:
EnunciateAMFDataWriter

public interface AMFDataWriter

Defines a writer for AMF data.

Author:
Ryan Heaton

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.
 

Method Detail

isWriteable

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

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

void writeTo(java.lang.Object obj,
             java.lang.Class realType,
             java.lang.reflect.Type genericType,
             java.io.OutputStream stream)
             throws java.io.IOException
Write the object to the specified stream.

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