question: public void load ( String fileName ) throws IOException { BufferedReader bfr = new BufferedReader ( new InputStreamReader ( new FileInputStream ( fileName ) , "UTF-8" ) ) ; if ( bList == null ) bList = new Vector ( DEFAULT_INCREMENT , DEFAULT_INCREMENT ) ; String line = bfr . readLine ( ) ; if ( line . indexOf ( "FROM: " ) != - 1 ) { line = line . substring ( 6 ) ; String [ ] parts = new String [ 2 ] ; parts = line . split ( "\\*" , 2 ) ; fromDir = parts [ 0 ] ; fromExt = parts [ 1 ] ; } else if ( ! ( line . matches ( "^\\s*$" ) ) ) add ( line ) ; while ( ( line = bfr . readLine ( ) ) != null ) { if ( ! ( line . matches ( "^\\s*$" ) ) ) add ( line ) ; } }
target:  Read the basenameList from a file