private void buildPreviewString(int instrSize, String valueStr, String maskStr, int posptr,
			int row) {

		// Extract the number of bytes from the full string created above, both for the value 
		// and the mask;
		String instrValTmp = valueStr.substring(posptr, posptr + (instrSize * 8));
		String instrMaskTmp = maskStr.substring(posptr, posptr + (instrSize * 8));

		// Add the strings to the table, making sure to format the string such that
		// masked bits are displayed correctly.
		String prevStr = "";
		try {
			prevStr = InstructionSearchUtils.formatSearchString(instrValTmp, instrMaskTmp);
		}
		catch (InvalidInputException e) {
			Msg.error(this, "Error formatting string for preview: " + instrValTmp);
			// Note, don't return here - continue to add the string (empty at this point) to the
			// preview at the given row.
		}

		addPreviewString(prevStr, row);
	}
Creates {@link InstructionTableDataObject} objects to back the preview
table.
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/instructionsearch/ui/PreviewTable.java