private Charset getUTF16Charset() {
		return isBigEndian() ? StandardCharsets.UTF_16BE : StandardCharsets.UTF_16LE;
	}
Reads an unsigned int32 value, and returns it as a java int (instead of a java long).
<p>
If the value is outside the range of 0..Integer.MAX_VALUE, an InvalidDataException is thrown.
<p>
Useful for reading uint32 values that are going to be used in java to allocate arrays or
other similar cases where the value must be a java integer.
   
@param dc {@link BigEndianDataConverter BE} or {@link LittleEndianDataConverter LE}
@return the uint32 value read from the stream, if it fits into the range [0..MAX_VALUE] 
of a java integer 
@throws IOException if there was an error reading
@throws InvalidDataException if value can not be held in a java integer
Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/BinaryReader.java