public int read(char ch[],int offset,int length) throws IOException {
  if (length > fBuffer.length) {
    length=fBuffer.length;
  }
  int count=fInputStream.read(fBuffer,0,length);
  for (int i=0; i < count; i++) {
    int b0=fBuffer[i];
    if (b0 < 0) {
      throw new IOException(Localizer.getMessage("jsp.error.xml.invalidASCII",Integer.toString(b0)));
    }
    ch[offset + i]=(char)b0;
  }
  return count;
}

public int read ( char ch [ ] , int offset , int length ) throws IOException { if ( length > fBuffer . length ) { length = fBuffer . length ; } int count = fInputStream . read ( fBuffer , 0 , length ) ; for ( int i = 0 ; i < count ; i ++ ) { int b0 = fBuffer [ i ] ; if ( b0 < 0 ) { throw new IOException ( Localizer . getMessage ( "jsp.error.xml.invalidASCII" , Integer . toString ( b0 ) ) ) ; } ch [ offset + i ] = ( char ) b0 ; } return count ; }
read characters into a portion of an array . this method will block until some input is available , an i / o error occurs , or the end of the stream is reached .
