@Override
          public void write(int b) throws IOException {
            out2.write(b);
          }
write an object in java Serializable form with a SERIALIZABLE DSCODE so that it can be
deserialized with DataSerializer.readObject()

@param o the object to serialize
@param out the data output to serialize to
geode-core/src/main/java/org/apache/geode/internal/InternalDataSerializer.java