Changed field marshaller registration to be compatible with DashO-style

field renaming. I'm a bad monkey for overusing reflection.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1587 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2002-07-17 23:05:28 +00:00
parent f53975fe74
commit 7a1a162a0d
18 changed files with 104 additions and 48 deletions
@@ -1,5 +1,5 @@
//
// $Id: BooleanFieldMarshaller.java,v 1.6 2002/02/01 23:32:37 mdb Exp $
// $Id: BooleanFieldMarshaller.java,v 1.7 2002/07/17 23:05:27 mdb Exp $
package com.threerings.presents.io;
@@ -10,8 +10,11 @@ import java.lang.reflect.Field;
public class BooleanFieldMarshaller implements FieldMarshaller
{
/** This is the sort of field that we marshall. */
public boolean prototype;
/** Returns the sort of field that we marshall. */
public Class getFieldType ()
{
return Boolean.TYPE;
}
public void writeTo (DataOutputStream out, Field field, Object obj)
throws IOException, IllegalAccessException