public int read(byte b[]) throws IOException {
  if (inputStream == null) {
    throw new IOException("Stream closed");
  }
  return inputStream.read(b,0,b.length);
}

public int read ( byte b [ ] ) throws IOException { if ( inputStream == null ) { throw new IOException ( "Stream closed" ) ; } return inputStream . read ( b , 0 , b . length ) ; }
read from the file .
