Code example for ObjectInput

Methods: readBytereadObject

0
	// Implements Externalizable 
	public void readExternal( ObjectInput in )
        throws IOException, ClassNotFoundException {
 
        // VERSION 
        in.readByte();
 
        // LIST 
        list = ( TShortList ) in.readObject();
    } 
 
 
    // Implements Externalizable 
    public void writeExternal( ObjectOutput out ) throws IOException {
        // VERSION 
        out.writeByte(0);
 
        // LIST 
        out.writeObject( list );
    }