private List<String> readCredits(){
  final URL url=DataLoader.getResource("games/stendhal/client/gui/credits.txt");
  final List<String> res=new LinkedList<String>();
  try {
    final BufferedReader br=new BufferedReader(new InputStreamReader(url.openStream(),"UTF-8"));
    try {
      String line=br.readLine();
      while (line != null) {
        res.add(line);
        line=br.readLine();
      }
    }
  finally {
      br.close();
    }
  }
 catch (  final IOException e) {
    res.add(0,"credits.txt not found");
  }
  return res;
}

private List < String > readCredits ( ) { final URL url = DataLoader . getResource ( "games/stendhal/client/gui/credits.txt" ) ; final List < String > res = new LinkedList < String > ( ) ; try { final BufferedReader br = new BufferedReader ( new InputStreamReader ( url . openStream ( ) , "UTF-8" ) ) ; try { String line = br . readLine ( ) ; while ( line != null ) { res . add ( line ) ; line = br . readLine ( ) ; } } finally { br . close ( ) ; } } catch ( final IOException e ) { res . add ( 0 , "credits.txt not found" ) ; } return res ; }
reads the credits from credits . text .
