protected boolean validate(final char[] component,final int soffset,int eoffset,final BitSet generous){
  if (eoffset == -1) {
    eoffset=component.length - 1;
  }
  for (int i=soffset; i <= eoffset; i++) {
    if (!generous.get(component[i])) {
      return false;
    }
  }
  return true;
}

protected boolean validate ( final char [ ] component , final int soffset , int eoffset , final BitSet generous ) { if ( eoffset == - 1 ) { eoffset = component . length - 1 ; } for ( int i = soffset ; i <= eoffset ; i ++ ) { if ( ! generous . get ( component [ i ] ) ) { return false ; } } return true ; }
validate the uri characters within a specific component . the component must be performed after escape encoding . or it doesn ' t include escaped characters . < p > it ' s not that much strict , generous . the strict validation might be performed before being called this method .
