org.dmdf.dmt.externalizers
Class DoubleExternalizer

java.lang.Object
  extended by org.dmdf.dmt.externalizers.ObjectExternalizer
      extended by org.dmdf.dmt.externalizers.DoubleExternalizer
All Implemented Interfaces:
Externalizer

public class DoubleExternalizer
extends ObjectExternalizer

Author:
Steven Wang

Default implementation for java.lang.Double


Constructor Summary
DoubleExternalizer()
           
 
Method Summary
 java.lang.Object doRead(java.io.ObjectInput objectInput)
          The subclass implementation responsible read the object back
 void doWrite(java.lang.Object obj, java.io.ObjectOutput objectOutput)
          The subclass is responsible write the obj to objectOutput, the obj is guarenteed not null, subclass do not need do any null check on that
 
Methods inherited from class org.dmdf.dmt.externalizers.ObjectExternalizer
read, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DoubleExternalizer

public DoubleExternalizer()
Method Detail

doRead

public java.lang.Object doRead(java.io.ObjectInput objectInput)
                        throws java.io.IOException
Description copied from class: ObjectExternalizer
The subclass implementation responsible read the object back

Specified by:
doRead in class ObjectExternalizer
Returns:
Object
Throws:
java.io.IOException

doWrite

public void doWrite(java.lang.Object obj,
                    java.io.ObjectOutput objectOutput)
             throws java.io.IOException
Description copied from class: ObjectExternalizer
The subclass is responsible write the obj to objectOutput, the obj is guarenteed not null, subclass do not need do any null check on that

Specified by:
doWrite in class ObjectExternalizer
Throws:
java.io.IOException


Copyright © 2005 org.dmdt. All Rights Reserved.