private byte skipEntityForward(){
  while (charIndex < length && (lastChar=text.charAt(charIndex++)) != ';') {
  }
  return Character.DIRECTIONALITY_WHITESPACE;
}

private byte skipEntityForward ( ) { while ( charIndex < length && ( lastChar = text . charAt ( charIndex ++ ) ) != ';' ) { } return Character . DIRECTIONALITY_WHITESPACE ; }
advances charindex forward through an html character entity tag ( after the opening & amp ; has already been read ) and returns character . directionality_whitespace . it would be best to figure out the actual character and return its dirtype , but this is good enough .
