com.agfa.hap.sdo.implementation
Class CompleteSerializer
java.lang.Object
com.agfa.hap.sdo.implementation.BinarySerializer
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CompleteSerializer
public CompleteSerializer()
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.