Code example for DataOutputStream

Methods: writeBoolean, writeInt, writeLong

0
		statusCri = in.readLong();
	} 
	 
	public void write(DataOutputStream out) throws IOException 
	{ 
		out.writeInt(type);
		out.writeBoolean(syncToNab);
		out.writeLong(sabId);
		out.writeLong(cabId);
		out.writeLong(userId);
		out.writeInt(nowPlusMember);
		out.writeInt(nowPlusPresence);
		Serializer.serialize(profileImageURL, out);
		Serializer.serialize(nickname, out);
		out.writeLong(nicknameCri);
		Serializer.serialize(firstName, out);
		Serializer.serialize(middleNames, out);
		Serializer.serialize(lastName, out);
		out.writeLong(nameCri);
		out.writeInt(yearOfBirth);
		out.writeInt(monthOfBirth);
		out.writeInt(dayOfBirth);
		out.writeLong(dateOfBirthCri);
		Serializer.serialize(groupIds, out);
		out.writeLong(groupsCri);
		ArrayUtils.serializeArray(identities, out);
		Serializer.serialize(url, out);
		ArrayUtils.serializeArray(addresses, out);
		Serializer.serialize(title, out);
		out.writeLong(titleCri);
		Serializer.serialize(department, out);
		Serializer.serialize(organisation, out);
		out.writeLong(organisationCri);
		ArrayUtils.serializeArray(notes, out);
		Serializer.serialize(status, out);
		Serializer.serialize(statusSourceNetworkId, out);
		out.writeLong(statusCri);
	} 
 
	public boolean equals(Object o)
	{ 
		ManagedProfileRecord that = (ManagedProfileRecord) o;