com.agfa.hap.sdo.implementation
Class CompleteSerializer

java.lang.Object
  extended by com.agfa.hap.sdo.implementation.BinarySerializer
      extended by com.agfa.hap.sdo.implementation.CompleteSerializer
All Implemented Interfaces:
ExternalizableDelegator.Resolvable, java.io.Externalizable, java.io.Serializable

public class CompleteSerializer
extends BinarySerializer

BinarySerializer that serializes every object that it can reach in the graph. Implementation note: DataObjects are inlined the first time they are encountered. The second time an object is encountered a reference is stored.

Author:
AMOCZ
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.agfa.hap.sdo.implementation.BinarySerializer
dataObject
 
Constructor Summary
CompleteSerializer()
           
 
Method Summary
protected  PartialDataObject create(java.lang.String uri, java.lang.String type)
           
protected  PartialDataObject readChildDataObject(java.io.ObjectInput in, Property prop, PartialDataObject parent)
           
 void readExternal(java.io.ObjectInput in)
           
protected  void write(java.io.ObjectOutput out, PartialDataObject dataObject)
           
protected  void writeChildDataObject(java.io.ObjectOutput out, Property prop, PartialDataObject child)
           
 void writeExternal(java.io.ObjectOutput out)
           
 
Methods inherited from class com.agfa.hap.sdo.implementation.BinarySerializer
read, readResolve, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompleteSerializer

public CompleteSerializer()
Method Detail

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Specified by:
readExternal in interface java.io.Externalizable
Overrides:
readExternal in class BinarySerializer
Throws:
java.io.IOException
java.lang.ClassNotFoundException

readChildDataObject

protected PartialDataObject readChildDataObject(java.io.ObjectInput in,
                                                Property prop,
                                                PartialDataObject parent)
                                         throws java.io.IOException
Specified by:
readChildDataObject in class BinarySerializer
Throws:
java.io.IOException

create

protected PartialDataObject create(java.lang.String uri,
                                   java.lang.String type)
Overrides:
create in class BinarySerializer

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException
Specified by:
writeExternal in interface java.io.Externalizable
Overrides:
writeExternal in class BinarySerializer
Throws:
java.io.IOException

write

protected void write(java.io.ObjectOutput out,
                     PartialDataObject dataObject)
              throws java.io.IOException
Overrides:
write in class BinarySerializer
Throws:
java.io.IOException

writeChildDataObject

protected void writeChildDataObject(java.io.ObjectOutput out,
                                    Property prop,
                                    PartialDataObject child)
                             throws java.io.IOException
Specified by:
writeChildDataObject in class BinarySerializer
Throws:
java.io.IOException


Copyright © 2007. All Rights Reserved.