question: public void read ( InputStream is ) throws IOException { BufferedReader br = new BufferedReader ( new InputStreamReader ( is , "UTF8" ) ) ; String line = null ; String currentJar = null ; Vector < String > jars = new Vector < > ( ) ; while ( ( line = br . readLine ( ) ) != null && ! line . endsWith ( ".jar" ) ) ; for ( ; line != null ; line = br . readLine ( ) ) { if ( line . length ( ) == 0 ) continue ; if ( line . endsWith ( ".jar" ) ) { currentJar = line ; jars . add ( currentJar ) ; } else { String name = line ; addMapping ( name , currentJar ) ; } } jarFiles = jars . toArray ( new String [ jars . size ( ) ] ) ; }
target:  Reads the index from the specified InputStream.