private static boolean isValidCharacter(int ch) {
		return
			(ch >= 0x20 && ch <= 0xD7FF) // Most common condition first
			|| ch == 0x9
			|| ch == 0xA
			|| ch == 0xD
			|| (ch >= 0xE000 && ch <= 0xFFFD)
			|| (ch >= 0x10000 && ch <= 0x10FFFF)
		;
	}
private static boolean isValidCharacter ( int ch ) { return ( ch >= 0x20 && ch <= 0xD7FF ) || ch == 0x9 || ch == 0xA || ch == 0xD || ( ch >= 0xE000 && ch <= 0xFFFD ) || ( ch >= 0x10000 && ch <= 0x10FFFF ) ; }
<pre>Char	   ::=   	#x9 | #xA | #xD | [#x20-#xD7FF] | [#xE000-#xFFFD] | [#x10000-#x10FFFF]</pre>