Here you can find the source of checkValidCharOnly(BitSet validChars, String value)
public static boolean checkValidCharOnly(BitSet validChars, String value)
//package com.java2s; //License from project: Apache License import java.util.BitSet; public class Main { public static boolean checkValidCharOnly(BitSet validChars, String value) { for (char c : value.toCharArray()) { if (!validChars.get(c)) { return false; }//from w ww . j a v a 2s. co m } return true; } }