Code example for ObjectOutput

Methods: writeInt, writeLong, writeUTF

0
		action_bsh_script=obj_in.readUTF();
	} 
 
	@Override 
	final public void writeExternal(ObjectOutput obj_out) throws IOException {
		obj_out.writeLong(serialVersionUID);
		 
		obj_out.writeUTF(profile_group);
		obj_out.writeUTF(profile_type);
		obj_out.writeUTF(profile_name);
		obj_out.writeUTF(profile_enable);
		obj_out.writeInt(profile_group_active);
		obj_out.writeLong(profile_update_time);
		 
//		Task	 
		obj_out.writeUTF(retrospective_enable);
		obj_out.writeUTF(retrospective_number);
		obj_out.writeUTF(profile_error_notification);
		 
//		SerializeUtil.writeListString(obj_out,action_action); 
		SerializeUtilities.writeListObject(obj_out,action_action);
	 
//		SerializeUtil.writeListString(obj_out,action_trigger); 
		SerializeUtilities.writeListObject(obj_out,action_trigger);
 
//		Timer	 
		obj_out.writeUTF(time_date_time_type);
		obj_out.writeUTF(time_day_of_the_week);
		obj_out.writeUTF(time_date);
		obj_out.writeUTF(time_time);
 
//		Action	 
		obj_out.writeUTF(action_action_type);
		//ActionType=Android 
		obj_out.writeUTF(action_activity_name);
		obj_out.writeUTF(action_activity_package);
		obj_out.writeUTF(action_activity_data_type);
		obj_out.writeUTF(action_activity_uri_data);
		 
//		obj_out.writeObject(action_activity_extra_data_list); 
//		SerializeUtil.writeListActivityExtraDataItem(obj_out,action_activity_extra_data_list); 
		SerializeUtilities.writeListObject(obj_out,action_activity_extra_data_list);
		 
		//ActionType=Music 
		obj_out.writeUTF(action_sound_file_name);
		obj_out.writeUTF(action_sound_vol_left);
		obj_out.writeUTF(action_sound_vol_right);
		//ActionType=Ringtone 
		obj_out.writeUTF(action_ringtone_type);
		obj_out.writeUTF(action_ringtone_name);
		obj_out.writeUTF(action_ringtone_path);
		obj_out.writeUTF(action_ringtone_vol_left);
		obj_out.writeUTF(action_ringtone_vol_right);
		//Compare 
		obj_out.writeUTF(action_compare_target);
		obj_out.writeUTF(action_compare_type);
		obj_out.writeUTF(action_compare_result_action);
 
//		obj_out.writeObject(action_compare_val); 
		SerializeUtilities.writeArrayString(obj_out,action_compare_val);
		 
//		String t_compare_val=stringArrayToString(compare_val); 
//		obj_out.writeUTF(t_compare_val); 
		//Message 
		obj_out.writeUTF(action_message_type);
		obj_out.writeUTF(action_message_text); 
		obj_out.writeInt(action_message_use_vibration);
		obj_out.writeInt(action_message_use_led);
		obj_out.writeUTF(action_message_led_color);
		//Action Time  
		obj_out.writeUTF(action_time_type);
		obj_out.writeUTF(action_time_target); 
		//Action Task  
		obj_out.writeUTF(action_task_type);
		obj_out.writeUTF(action_task_target); 
		//Action Wait 
		obj_out.writeUTF(action_wait_target);
		obj_out.writeUTF(action_wait_timeout_value);
		obj_out.writeUTF(action_wait_timeout_units);
		//Action Bean Shell Script 
		obj_out.writeUTF(action_bsh_script);
	} 
}; 
 
class ActivityExtraDataItem implements Cloneable, Externalizable{
	private static final long serialVersionUID = SERIALIZABLE_NUMBER;