public static void readAbbrList ( String dataFile , Map map ) throws IOException { BufferedReader fin = new BufferedReader ( new FileReader ( dataFile ) ) ; String line ; while ( ( line = fin . readLine ( ) ) != null ) { StringTokenizer strTok = new StringTokenizer ( line , " \t\r\n" ) ; if ( strTok . countTokens ( ) <= 0 ) { continue ; } String token = strTok . nextToken ( ) ; map . put ( token . toLowerCase ( ) , token . toLowerCase ( ) ) ; } }
Read abbr list .