public void addHistogram(String histStr){
  if (histStr.length() > 0) {
    final String[] values=histStr.split("\t");
    for (int i=values.length - 1; i >= 0; i--) {
      final long val=Long.parseLong(values[i]);
      if (val > 0) {
        increment(i,val);
      }
    }
  }
}

public void addHistogram ( String histStr ) { if ( histStr . length ( ) > 0 ) { final String [ ] values = histStr . split ( "\t" ) ; for ( int i = values . length - 1 ; i >= 0 ; i -- ) { final long val = Long . parseLong ( values [ i ] ) ; if ( val > 0 ) { increment ( i , val ) ; } } } }
parse a zero based histogram from tab separated string .
