coherence

## Class PersonSerializer

- java.lang.Object
- - coherence.PersonSerializer

- All Implemented Interfaces:
    PofSerializer

      public class PersonSerializer
      extends Object
      implements PofSerializer

  This class provides POF serialization of Person.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `PersonSerializer()` Default constructor

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `Object` | `deserialize(PofReader in)` Deserialize a Person object.
    `void` | `serialize(PofWriter out, Object o)` Serialize a Person object.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### PersonSerializer

          public PersonSerializer()

      Default constructor

  - ### Method Detail

    - #### serialize

          public void serialize(PofWriter out,
                       Object o)
                         throws IOException

      Serialize a Person object.
      Specified by:
        `serialize` in interface `PofSerializer`
      Parameters:
        `out` - The PofWriter to write to
        `o` - The Person object to write
      Throws:
        `IOException` - if the object o is not a Person

    - #### deserialize

          public Object deserialize(PofReader in)
                             throws IOException

      Deserialize a Person object.
      Specified by:
        `deserialize` in interface `PofSerializer`
      Parameters:
        `in` - The PofReader to read from
      Returns:
        The Person object read from the input stream
      Throws:
        `IOException` - if the stream does not contain the serialization of a Person object in an expected version.

Copyright (c) 2011, 2014 Oracle and/or its affiliates. All rights reserved.