@Test(expected=IOException.class) public void parse() throws Exception { Country c = Country.parse(""); }
public static ArrayList<Country> parse(InputStream is) throws IOException { BufferedReader in = new BufferedReader(new InputStreamReader(is)); String line = null; ArrayList<Country> c = new ArrayList<Country>(); while ((line = in.readLine()) != null) { if (!line.equals("") && !line.startsWith("#")) { c.add(Country.parse(line)); } } return c; }
CountryUtil { public static ArrayList<Country> parse(InputStream is) throws IOException { BufferedReader in = new BufferedReader(new InputStreamReader(is)); String line = null; ArrayList<Country> c = new ArrayList<Country>(); while ((line = in.readLine()) != null) { if (!line.equals("") && !line.startsWith("#")) { c.add(Country.parse(line)); } } return c; } }
CountryUtil { public static ArrayList<Country> parse(InputStream is) throws IOException { BufferedReader in = new BufferedReader(new InputStreamReader(is)); String line = null; ArrayList<Country> c = new ArrayList<Country>(); while ((line = in.readLine()) != null) { if (!line.equals("") && !line.startsWith("#")) { c.add(Country.parse(line)); } } return c; } private  CountryUtil(); }
CountryUtil { public static ArrayList<Country> parse(InputStream is) throws IOException { BufferedReader in = new BufferedReader(new InputStreamReader(is)); String line = null; ArrayList<Country> c = new ArrayList<Country>(); while ((line = in.readLine()) != null) { if (!line.equals("") && !line.startsWith("#")) { c.add(Country.parse(line)); } } return c; } private  CountryUtil(); static Country lookupByIso2(String iso2); static ArrayList<Country> parse(InputStream is); static List<Country> getCountriesByName(); }
CountryUtil { public static ArrayList<Country> parse(InputStream is) throws IOException { BufferedReader in = new BufferedReader(new InputStreamReader(is)); String line = null; ArrayList<Country> c = new ArrayList<Country>(); while ((line = in.readLine()) != null) { if (!line.equals("") && !line.startsWith("#")) { c.add(Country.parse(line)); } } return c; } private  CountryUtil(); static Country lookupByIso2(String iso2); static ArrayList<Country> parse(InputStream is); static List<Country> getCountriesByName();  }