@Override
		public int read() throws IOException {
			if (pos >= size) {
				return -1;
			}
			byte b;
			if (useModifiedBytes) {
				b = fileBytes.getModifiedByte(pos);
			}
			else {
				b = fileBytes.getOriginalByte(pos);
			}
			pos++;
			return Byte.toUnsignedInt(b);
		}
Creates a new {@link InputStream} that can read over the modified bytes of the given
{@link FileBytes} object

@param fileBytes The {@link FileBytes} to use for the {@link InputStream}
@param useModifiedBytes True if modified bytes should be read; false for unmodified
  (original) bytes
Ghidra/Features/Base/src/main/java/ghidra/app/util/exporter/OriginalFileExporter.java