private FrequencyDistribution<String> createFreqDistForMiscFile(File misc) throws IOException {
  BufferedReader reader=new BufferedReader(new InputStreamReader(new FileInputStream(misc),outputEncoding));
  FrequencyDistribution<String> letterFD=new FrequencyDistribution<String>();
  String readLine=null;
  while ((readLine=reader.readLine()) != null) {
    int indexOfTab=readLine.indexOf(TAB);
    String key=getStartingLetters(readLine,indexOfTab);
    letterFD.addSample(key,1);
  }
  reader.close();
  return letterFD;
}

private FrequencyDistribution < String > createFreqDistForMiscFile ( File misc ) throws IOException { BufferedReader reader = new BufferedReader ( new InputStreamReader ( new FileInputStream ( misc ) , outputEncoding ) ) ; FrequencyDistribution < String > letterFD = new FrequencyDistribution < String > ( ) ; String readLine = null ; while ( ( readLine = reader . readLine ( ) ) != null ) { int indexOfTab = readLine . indexOf ( TAB ) ; String key = getStartingLetters ( readLine , indexOfTab ) ; letterFD . addSample ( key , 1 ) ; } reader . close ( ) ; return letterFD ; }
creates a new frequency distribution over the starting letters in the misc file as preparation for splitting
