public boolean canEncode(char ch){
  int index;
  String theChars;
  index=index1[((ch & mask1) >> shift)] + (ch & mask2);
  if (index < 7500)   theChars=index2;
 else   if (index < 15000) {
    index=index - 7500;
    theChars=index2a;
  }
 else   if (index < 22500) {
    index=index - 15000;
    theChars=index2b;
  }
 else {
    index=index - 22500;
    theChars=index2c;
  }
  if (theChars.charAt(2 * index) != '\u0000' || theChars.charAt(2 * index + 1) != '\u0000')   return (true);
  return (ch == '\u0000');
}

public boolean canEncode ( char ch ) { int index ; String theChars ; index = index1 [ ( ( ch & mask1 ) > > shift ) ] + ( ch & mask2 ) ; if ( index < 7500 ) theChars = index2 ; else if ( index < 15000 ) { index = index - 7500 ; theChars = index2a ; } else if ( index < 22500 ) { index = index - 15000 ; theChars = index2b ; } else { index = index - 22500 ; theChars = index2c ; } if ( theChars . charAt ( 2 * index ) != '' || theChars . charAt ( 2 * index + 1 ) != '' ) return ( true ) ; return ( ch == '' ) ; }
returns true if the given character can be converted to the target character encoding .
