Code example for ObjectOutput

Methods: writeByte, writeObject

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