cdm/src/main/java/ucar/nc2/iosp/noaa/Ghcnm.java
static private int parseLine(String line) throws IOException {
    int balony = 0;
    Matcher matcher = dataPattern.matcher(line);
    if (matcher.matches()) {
      for (int i = 1; i <= matcher.groupCount(); i++) {
        String r = matcher.group(i);
        if (r == null) continue;
        int value = (int) Long.parseLong(r.trim());
        balony += value;
      }
    } else {
      System.out.printf("Fail on %s%n", line);
    }
    return balony;
  }
static private int parseLine(String line) throws IOException {
    int balony = 0;
    Matcher matcher = dataPattern.matcher(line);
    if (matcher.matches()) {
      for (int i = 1; i <= matcher.groupCount(); i++) {
        String r = matcher.group(i);
        if (r == null) continue;
        int value = (int) Long.parseLong(r.trim());
        balony += value;
      }
    } else {
      System.out.printf("Fail on %s%n", line);
    }
    return balony;
  }
static private int parseLine ( String line ) throws IOException { int balony = 0 ; Matcher matcher = dataPattern . matcher ( line ) ; if ( matcher . matches ( ) ) { for ( int i = 1 ; i <= matcher . groupCount ( ) ; i ++ ) { String r = matcher . group ( i ) ; if ( r == null ) continue ; int value = ( int ) Long . parseLong ( r . trim ( ) ) ; balony += value ; } } else { System . out . printf ( "Fail on %s%n" , line ) ; } return balony ; }
//////////////////////////////////
//////////////////////////////////