private void readContentTypeAndName() throws IOException {

		ItemDeserializer itemDeserializer = null;
		if (packedDbLock != null) {
			lock(packedDbLock, true, true);
		}
		try {
			itemDeserializer = new ItemDeserializer(packedDbFile);
			if (itemDeserializer.getFileType() != FolderItem.DATABASE_FILE_TYPE) {
				throw new IOException("Incorrect file type");
			}
			contentType = itemDeserializer.getContentType();
			itemName = itemDeserializer.getItemName();
		}
		finally {
			if (itemDeserializer != null) {
				itemDeserializer.dispose();
			}
			if (packedDbLock != null) {
				packedDbLock.removeLock();
			}
		}
	}
Read user content type and name from packed file.
@throws IOException if IO error occurs
Ghidra/Framework/FileSystem/src/main/java/ghidra/framework/store/db/PackedDatabase.java