Initial revision
From-SVN: r102074
This commit is contained in:
parent
6f4434b39b
commit
f911ba985a
4557 changed files with 1000262 additions and 0 deletions
37
libjava/classpath/test/java.io/OOSExtern.java
Normal file
37
libjava/classpath/test/java.io/OOSExtern.java
Normal file
|
@ -0,0 +1,37 @@
|
|||
|
||||
import java.io.*;
|
||||
|
||||
public class OOSExtern extends OOSNoCallDefault implements Externalizable
|
||||
{
|
||||
public OOSExtern()
|
||||
{}
|
||||
|
||||
OOSExtern( int X, String S, boolean B )
|
||||
{
|
||||
super( X, S, B );
|
||||
}
|
||||
|
||||
public void writeExternal( ObjectOutput oo ) throws IOException
|
||||
{
|
||||
oo.writeInt( super.x );
|
||||
oo.writeObject( super.s );
|
||||
oo.writeBoolean( super.b );
|
||||
}
|
||||
|
||||
public void readExternal( ObjectInput oi )
|
||||
throws ClassNotFoundException, IOException
|
||||
{
|
||||
super.x = oi.readInt();
|
||||
super.s = (String)oi.readObject();
|
||||
super.b = oi.readBoolean();
|
||||
}
|
||||
|
||||
public boolean equals( Object o )
|
||||
{
|
||||
OOSExtern e = (OOSExtern)o;
|
||||
return e.x == super.x
|
||||
&& e.s.equals( super.s )
|
||||
&& e.b == super.b;
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue