public class PersonSerializer extends Object implements PofSerializer
Constructor and Description |
---|
PersonSerializer()
Default constructor
|
public void serialize(PofWriter out, Object o) throws IOException
serialize
in interface PofSerializer
out
- The PofWriter to write too
- The Person object to writeIOException
- if the object o is not a Personpublic Object deserialize(PofReader in) throws IOException
deserialize
in interface PofSerializer
in
- The PofReader to read fromIOException
- if the stream does not contain the serialization
of a Person object in an expected version.Copyright (c) 2011, 2015 Oracle and/or its affiliates. All rights reserved.