org.nakedobjects.metamodel.commons.encoding
Interface Encodable

All Known Subinterfaces:
AuthenticationSession, DirectlyStringableOid, Oid
All Known Implementing Classes:
AggregatedOid, AuthenticationSessionAbstract, AuthenticationSessionNoRuntime, SerialNumberVersion, VersionUserAbstract, VersionUserAndTimeAbstract

public interface Encodable

This interface indicates that an object can be encoded into into a byte array so it can be streamed.

By implementing this interface you are agreeing to provide a constructor with a single argument of type DataInputExtended, which create an instance from the stream.


Method Summary
 void encode(DataOutputExtended outputStream)
          Returns the domain object's value as an encoded byte array via the encoder.
 

Method Detail

encode

void encode(DataOutputExtended outputStream)
            throws java.io.IOException
Returns the domain object's value as an encoded byte array via the encoder.

Throws:
java.io.IOException


Copyright © 2001-2009 Naked Objects Group Ltd.. All Rights Reserved.