Modified field marshalling code to work on any object rather than being
DObject specific (because it didn't need to be). git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@911 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: FieldMarshaller.java,v 1.4 2001/10/11 04:07:52 mdb Exp $
|
||||
// $Id: FieldMarshaller.java,v 1.5 2002/02/01 23:26:49 mdb Exp $
|
||||
|
||||
package com.threerings.presents.dobj.io;
|
||||
|
||||
@@ -8,8 +8,6 @@ import java.io.DataOutputStream;
|
||||
import java.io.IOException;
|
||||
import java.lang.reflect.Field;
|
||||
|
||||
import com.threerings.presents.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
|
||||
@@ -17,9 +15,9 @@ import com.threerings.presents.dobj.DObject;
|
||||
*/
|
||||
public interface FieldMarshaller
|
||||
{
|
||||
public void writeTo (DataOutputStream out, Field field, DObject dobj)
|
||||
public void writeTo (DataOutputStream out, Field field, Object obj)
|
||||
throws IOException, IllegalAccessException;
|
||||
|
||||
public void readFrom (DataInputStream in, Field field, DObject dobj)
|
||||
public void readFrom (DataInputStream in, Field field, Object obj)
|
||||
throws IOException, IllegalAccessException;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user