public static void loadViLocationList ( String filename ) { try { FileInputStream in = new FileInputStream ( filename ) ; if ( hsViLocations == null ) { hsViLocations = new HashSet ( ) ; BufferedReader reader = new BufferedReader ( new InputStreamReader ( in , "UTF-8" ) ) ; String line ; while ( ( line = reader . readLine ( ) ) != null ) { String word = line . trim ( ) ; hsViLocations . add ( word ) ; } } } catch ( Exception e ) { System . err . print ( e . getMessage ( ) ) ; } }
Load vi location list .