ch.javasoft.jbase
Interface EntityMarshaller<E>

Type Parameters:
E - The entity type
All Known Subinterfaces:
FixedWidthMarshaller<E>
All Known Implementing Classes:
BigDecimalMarshaller, BigIntegerMarshaller, StringMarshaller, UtfStringMarshaller

public interface EntityMarshaller<E>

A marshaller reads and writes table rows, i.e. it converts an entity (object instance) to and from binary data.


Method Summary
 E readFrom(DataInput in)
          Reads from the given data input and creates an entity instance from the read data
 void writeTo(E entity, DataOutput out)
          Writes the given entity to the given data output
 

Method Detail

writeTo

void writeTo(E entity,
             DataOutput out)
             throws IOException
Writes the given entity to the given data output

Throws:
IOException

readFrom

E readFrom(DataInput in)
           throws IOException
Reads from the given data input and creates an entity instance from the read data

Throws:
IOException