public String toHexString(short s, boolean zeropad, boolean header) {
		String str = Integer.toHexString(s & 0xffff);
		if (zeropad) {
			str = zeropad(str, 4);
		}
		return (header ? "0x" : "") + str;
	}
Returns a hex string representation of the short.

@param s        the short
@param zeropad  true if the value should be zero padded
@param header   true if "0x" should be prepended
@return the hex formatted string
Ghidra/Features/Base/src/main/java/ghidra/app/script/GhidraScript.java