Files
narya/src/java/com/threerings/presents/io/FieldMarshaller.java
T
Michael Bayne 9cd146a43c Created the facilities for transmitting distributed objects and derived
classes over the wire (by inspecting their fields and sending those
directly).


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@8 542714f4-19e9-0310-aa3c-eee0fc999fb1
2001-05-30 00:16:00 +00:00

26 lines
757 B
Java

//
// $Id: FieldMarshaller.java,v 1.1 2001/05/30 00:16:00 mdb Exp $
package com.samskivert.cocktail.cher.dobj.net;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import java.lang.reflect.Field;
import com.samskivert.cocktail.cher.dobj.DObject;
/**
* A field marshaller knows how to marshall and unmarshall a particular
* data type. It is called upon to do the actual on the wire
* encoding/decoding of a field.
*/
public interface FieldMarshaller
{
public void writeTo (DataOutputStream out, Field field, DObject dobj)
throws IOException, IllegalAccessException;
public void readFrom (DataInputStream in, Field field, DObject dobj)
throws IOException, IllegalAccessException;
}