/* * JBoss, the OpenSource J2EE webOS * * Distributable under LGPL license. * See terms of license at gnu.org. */ import java.io.*; /** * * @author Bill Burke * @version $Revision: 1.1 $ */ public class POJO2ExternalizableMixin implements java.io.Externalizable { POJO2 pojo; public POJO2ExternalizableMixin(POJO2 pojo) { this.pojo = pojo; } public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { pojo.stuff2 = in.readUTF(); } public void writeExternal(ObjectOutput out) throws IOException { out.writeUTF(pojo.stuff2); } }