Dead
[official-gcc.git] / gomp-20050608-branch / libjava / classpath / test / java.io / OOSExtern.java
blob7394c5bc85a7abf460d6823caf86feebd9124387
2 import java.io.*;
4 public class OOSExtern extends OOSNoCallDefault implements Externalizable
6 public OOSExtern()
7 {}
9 OOSExtern( int X, String S, boolean B )
11 super( X, S, B );
14 public void writeExternal( ObjectOutput oo ) throws IOException
16 oo.writeInt( super.x );
17 oo.writeObject( super.s );
18 oo.writeBoolean( super.b );
21 public void readExternal( ObjectInput oi )
22 throws ClassNotFoundException, IOException
24 super.x = oi.readInt();
25 super.s = (String)oi.readObject();
26 super.b = oi.readBoolean();
29 public boolean equals( Object o )
31 OOSExtern e = (OOSExtern)o;
32 return e.x == super.x
33 && e.s.equals( super.s )
34 && e.b == super.b;