public RainFall(String record, BufferedWriter out, String fn)
  {
    try {
    String[] fields = record.split(",");
    //System.out.println(record);
    _stationId = fields[1];
    _year = "" + Integer.parseInt(fields[2]);
    _month = "" + Integer.parseInt(fields[3]);
    _day = "" + Integer.parseInt(fields[4]);
    
    if (fields.length >= 6) {
      _rainfall = fields[5];
    }
    
    } catch (ArrayIndexOutOfBoundsException e) {
      System.out.println(_year + ", " + _month + ", " + _day + ", " + _stationId + ", " + fn);
    }
    
    write(out);
    
  }