question: private void loadText ( InputStream is ) { BufferedReader reader ; String line ; unitList = new ArrayList ( ) ; unitTypesList = new ArrayList ( ) ; if ( is == null ) { throw new Error ( "Can't load cluster db file." ) ; } reader = new BufferedReader ( new InputStreamReader ( is ) ) ; try { line = reader . readLine ( ) ; lineCount ++ ; while ( line != null ) { if ( ! line . startsWith ( "***" ) ) { parseAndAdd ( line , reader ) ; } line = reader . readLine ( ) ; } reader . close ( ) ; units = new DatabaseClusterUnit [ unitList . size ( ) ] ; units = ( DatabaseClusterUnit [ ] ) unitList . toArray ( units ) ; unitList = null ; unitTypes = new UnitType [ unitTypesList . size ( ) ] ; unitTypes = ( UnitType [ ] ) unitTypesList . toArray ( unitTypes ) ; unitTypesList = null ; } catch ( IOException e ) { throw new Error ( e . getMessage ( ) + " at line " + lineCount ) ; } finally { } }
target:  Loads the database from the given input stream.