org.spicefactory.cinnamon.io
Interface Externalizable

All Known Implementing Classes:
AbstractApplicableEntitySnapshot, AbstractEntitySnapshot, CollectionChangeSet, DefaultQuery, EmbeddedPropertyMetadata, EntityMetadata, FetchMode, FetchPlan, FullEntitySnapshot, KeepAliveMessage, PartialEntitySnapshot, PimentoParameters, PimentoResult, PropertyMetadata, ProxyEntitySnapshot, ServiceMessage, ServiceRequest, ServiceResponse

public interface Externalizable

Controls the serialization and deserialization of the object implementing this interface to/from AMF3 binary data. This interface differs from the java.io.Externalizable interface since it corresponds directly to the flash.utils.IExternalizable interface in the core Flash Player API.

If you want to implement this interface for a mapped Java class, make sure you follow these steps:

In some cases where the mapped Java class cannot implement this interface, you can use the org.spicefactory.cinnamon.io.Externalizer interface instead. This might happen if you must work with existing classes that you cannot modify or if the mapped Java class does not have a default no-args constructor.

Author:
Jens Halm

Method Summary
 void readExternal(DataInput in)
          Restores the content of this object from the DataInput instance.
 void writeExternal(DataOutput out)
          Saves the content of this object to the DataOutput instance.
 

Method Detail

readExternal

void readExternal(DataInput in)
Restores the content of this object from the DataInput instance. Values must be read in the same sequence as they were written on the client side.

Parameters:
in - the AMF3 data to read from

writeExternal

void writeExternal(DataOutput out)
Saves the content of this object to the DataOutput instance.

Parameters:
out - the output to write to