@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);
 }
Ejemplo n.º 2
0
 @Override
 public void writeExternal(PofWriter writer) throws IOException {
   writer.writeObject(0, condition);
 }
Ejemplo n.º 3
0
 /**
  * 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);
 }
Ejemplo n.º 4
0
 /*
  * (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);
 }
Ejemplo n.º 5
0
 public void writeExternal(PofWriter writer) throws IOException {
   writer.writeString(0, message);
   writer.writeInt(1, severity);
 }
Ejemplo n.º 6
0
 public void writeExternal(PofWriter pofwriter) throws IOException {
   pofwriter.writeLong(0, id);
   pofwriter.writeDouble(1, amount);
   pofwriter.writeInt(2, quantity);
   pofwriter.writeInt(3, version);
 }