public SmartThresholds parse(final Resource thresholdFileResource) throws IOException {
  final SmartThresholds holder=new SmartThresholds();
  BufferedReader reader=null;
  try {
    reader=new BufferedReader(new InputStreamReader(thresholdFileResource.getInputStream()));
    String line;
    while ((line=reader.readLine()) != null) {
      if (line.startsWith("SM")) {
        String[] lineInput=line.split("\\s+");
        holder.addThreshold(new SmartThreshold(lineInput));
      }
    }
  }
  finally {
    if (reader != null) {
      reader.close();
    }
  }
  return holder;
}

public SmartThresholds parse ( final Resource thresholdFileResource ) throws IOException { final SmartThresholds holder = new SmartThresholds ( ) ; BufferedReader reader = null ; try { reader = new BufferedReader ( new InputStreamReader ( thresholdFileResource . getInputStream ( ) ) ) ; String line ; while ( ( line = reader . readLine ( ) ) != null ) { if ( line . startsWith ( "SM" ) ) { String [ ] lineInput = line . split ( "\\s+" ) ; holder . addThreshold ( new SmartThreshold ( lineInput ) ) ; } } } finally { if ( reader != null ) { reader . close ( ) ; } } return holder ; }
returns a map of model accession to a threshold record .
