public void loadAliases ( File file ) throws IOException , FileNotFoundException { LineNumberReader in = new LineNumberReader ( new FileReader ( file ) ) ; String line ; while ( ( line = in . readLine ( ) ) != null ) { String [ ] parts = line . split ( "\\t" ) ; for ( int j = 1 ; j < parts . length ; j ++ ) { put ( parts [ j ] , parts [ j ] , parts [ 0 ] ) ; } } in . close ( ) ; }
Load a file of identifiers each of which has multiple aliases . Each line is a list of tab - separated strings the first of which is the identifier the remainder of which are aliases .