protected int nextChar() throws IOException {
  fReadFromBuffer=(fBuffer.length() > 0);
  if (fReadFromBuffer) {
    char ch=fBuffer.charAt(fIndex++);
    if (fIndex >= fBuffer.length()) {
      fBuffer.setLength(0);
      fIndex=0;
    }
    return ch;
  }
  int ch=fCharAfterWhiteSpace;
  if (ch == -1) {
    ch=fReader.read();
  }
  if (fSkipWhiteSpace && Character.isWhitespace((char)ch)) {
    do {
      ch=fReader.read();
    }
 while (Character.isWhitespace((char)ch));
    if (ch != -1) {
      fCharAfterWhiteSpace=ch;
      return ' ';
    }
  }
 else {
    fCharAfterWhiteSpace=-1;
  }
  return ch;
}

protected int nextChar ( ) throws IOException { fReadFromBuffer = ( fBuffer . length ( ) > 0 ) ; if ( fReadFromBuffer ) { char ch = fBuffer . charAt ( fIndex ++ ) ; if ( fIndex >= fBuffer . length ( ) ) { fBuffer . setLength ( 0 ) ; fIndex = 0 ; } return ch ; } int ch = fCharAfterWhiteSpace ; if ( ch == - 1 ) { ch = fReader . read ( ) ; } if ( fSkipWhiteSpace && Character . isWhitespace ( ( char ) ch ) ) { do { ch = fReader . read ( ) ; } while ( Character . isWhitespace ( ( char ) ch ) ) ; if ( ch != - 1 ) { fCharAfterWhiteSpace = ch ; return ' ' ; } } else { fCharAfterWhiteSpace = - 1 ; } return ch ; }
returns the next character .
