code: public static void checkCharacters(char[] cbuf, int off, int len) throws IOException {
  		int end = off + len;
  		while(off < end) checkCharacter(cbuf[off++]);
  	}
docs: Checks a set of characters, throws IOException if invalid