public ConversationMetadataItem(DataInput in) throws IOException { localConversationId = in.readUTF(); conversationId = readNullableUTF(in); conversationToken = readNullableUTF(in); dataFile = getEncryptedFilename(new File(in.readUTF())); messagesFile = getEncryptedFilename(new File(in.readUTF())); conversationState = ConversationState.valueOf(in.readByte()); String conversationEncryptionKeyHex = readNullableUTF(in); conversationEncryptionKey = conversationEncryptionKeyHex != null ? new EncryptionKey(conversationEncryptionKeyHex) : null; userId = readNullableUTF(in); }