Code example for DataInputStream

Methods: readBoolean, readInt, readLong

0
//		statusCri = 0; 
	} 
	 
	public void read(DataInputStream in) throws IOException
	{ 
		type = in.readInt();
		syncToNab = in.readBoolean();
		sabId = in.readLong();
		cabId = in.readLong();
		userId = in.readLong();
		nowPlusMember = in.readInt();
		nowPlusPresence = in.readInt();
		profileImageURL = (String) Serializer.deserialize(in);
		nickname = (String) Serializer.deserialize(in);
		nicknameCri = in.readLong();
		firstName = (String) Serializer.deserialize(in);
		middleNames = (String) Serializer.deserialize(in);
		lastName = (String) Serializer.deserialize(in);
		nameCri = in.readLong();
		yearOfBirth = in.readInt();
		monthOfBirth = in.readInt();
		dayOfBirth = in.readInt();
		dateOfBirthCri = in.readLong();
		groupIds = (long[]) Serializer.deserialize(in);
		groupsCri = in.readLong();
		identities = ArrayUtils.deserializeIdentityArray(in);
		url = (Identity) Serializer.deserialize(in);
		addresses = ArrayUtils.deserializeAddressArray(in);
		title = (String) Serializer.deserialize(in);
		titleCri = in.readLong();
		department = (String) Serializer.deserialize(in);
		organisation = (String) Serializer.deserialize(in);
		organisationCri = in.readLong();
		notes = ArrayUtils.deserializeNoteArray(in);
		status = (String) Serializer.deserialize(in);
		statusSourceNetworkId = (String) Serializer.deserialize(in);
		statusCri = in.readLong();
	} 
	 
	public void write(DataOutputStream out) throws IOException 
	{ 
		out.writeInt(type);