org.dmdf.dmt.externalizers
Class DateExternalizer

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

public class DateExternalizer
extends ObjectExternalizer

Author:
Steven Wang

Default implementation for java.util.Date


Constructor Summary
DateExternalizer()
           
 
Method Summary
protected  java.lang.Object doRead(java.io.ObjectInput objectInput)
          The subclass implementation responsible read the object back
protected  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

DateExternalizer

public DateExternalizer()
Method Detail

doRead

protected java.lang.Object doRead(java.io.ObjectInput objectInput)
                           throws java.io.IOException,
                                  java.lang.ClassNotFoundException
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
java.lang.ClassNotFoundException

doWrite

protected 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.