org.rhq.core.server
Class EntitySerializer
java.lang.Object
org.rhq.core.server.EntitySerializer
public class EntitySerializer
- extends Object
A utility specifically tailored to entities which will iterate over its persistence fields with a consistent
ordering for serialization and deserialization. If this class is passed a non-entity object, it will ignore
field-level annotations and just serialize and deserialize all fields in that object.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EntitySerializer
public EntitySerializer()
writeExternalRemote
public static void writeExternalRemote(Object object,
ObjectOutput out)
throws IOException
- Throws:
IOException
readExternalRemote
public static void readExternalRemote(Object object,
ObjectInput in)
throws IOException,
ClassNotFoundException
- Throws:
IOException
ClassNotFoundException
main
public static void main(String[] args)
throws Exception
- Throws:
Exception
Copyright © 2008-2011 Red Hat, Inc.. All Rights Reserved.