@Override public void serialize(PofWriter pofWriter, Object obj) throws IOException { LengthyPofObject o = (LengthyPofObject) obj; pofWriter.writeInt(0, o.fields.size()); for (int i = 1; i <= o.fields.size(); i++) { pofWriter.writeObject(i, o.fields.get(i - 1)); } pofWriter.writeRemainder(null); }
@Override public void writeExternal(PofWriter writer) throws IOException { writer.writeObject(0, condition); }
/** * Serialize this object into a POF stream. * * @param writer POF writer to use * @throws IOException if an error occurs during serialization */ public void writeExternal(PofWriter writer) throws IOException { super.writeExternal(writer); writer.writeBinary(0, toBinary(value)); writer.writeBoolean(1, fReturnOld); }
/* * (non-Javadoc) * * @see * com.tangosol.io.pof.PortableObject#writeExternal(com.tangosol.io.pof. * PofWriter) */ @Override public void writeExternal(PofWriter out) throws IOException { out.writeString(0, this.expDir); }
public void writeExternal(PofWriter writer) throws IOException { writer.writeString(0, message); writer.writeInt(1, severity); }
public void writeExternal(PofWriter pofwriter) throws IOException { pofwriter.writeLong(0, id); pofwriter.writeDouble(1, amount); pofwriter.writeInt(2, quantity); pofwriter.writeInt(3, version); }