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
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
//
|
||||
// $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;
|
||||
}
|
||||
Reference in New Issue
Block a user