if (!osName.startsWith(Win95) && !osName.startsWith(Win98) && !osName.startsWith(WinME) && (!osName.startsWith(WinNT) || majorVersion > 4)) { WriteUnicode = true; } else { WriteUnicode = false; }
WriteUnicode =	!osName.startsWith(Win95) && !osName.startsWith(Win98) && !osName.startsWith(WinME) && (!osName.startsWith(WinNT) || majorVersion > 4);
	void setUnicode() {		final String Win95 = "windows 95";		final String Win98 = "windows 98";		final String WinME = "windows me";				final String WinNT = "windows nt";		String osName = System.getProperty("os.name").toLowerCase();		String osVersion = System.getProperty("os.version");		int majorVersion = 0;				if (osName.startsWith(WinNT) && osVersion != null) {			int majorIndex = osVersion.indexOf('.');			if (majorIndex != -1) {				osVersion = osVersion.substring(0, majorIndex);				try {					majorVersion = Integer.parseInt(osVersion);				}				catch (NumberFormatException exception) {					// ignore exception. version number remains unknown.					// will write without Unicode				}			}		}		if (!osName.startsWith(Win95) &&			!osName.startsWith(Win98) &&			!osName.startsWith(WinME) &&			(!osName.startsWith(WinNT) || majorVersion > 4)) {			WriteUnicode = true;		}		else {			WriteUnicode = false;		}	}