01: package com.jeta.forms.store;
02:
03: import java.io.IOException;
04:
05: public abstract class AbstractJETAPersistable implements
06: JETAPersistable {
07:
08: /**
09: * Externalizable Implementation
10: */
11: public void readExternal(java.io.ObjectInput in)
12: throws ClassNotFoundException, IOException {
13: if (in instanceof JETAObjectInput)
14: read((JETAObjectInput) in);
15: else {
16: read(new JavaExternalizableObjectInput(in));
17: }
18: }
19:
20: /**
21: * Externalizable Implementation
22: */
23: public void writeExternal(java.io.ObjectOutput out)
24: throws IOException {
25: if (out instanceof JETAObjectOutput)
26: write((JETAObjectOutput) out);
27: else
28: write(new JavaExternalizableObjectOutput(out));
29: }
30:
31: }
|