while ((line=br.readLine()) != null) {
while ((line=br.readLine()) != null && !line.equals("")) {
    public Cookie[] readCookies() throws StoreException {        BufferedReader br;        try {            br = new BufferedReader(new FileReader(_dir + "cookiejar"));        } catch (FileNotFoundException fnfe) {            return new Cookie[0];        }        ArrayList cookies = new ArrayList();        String line;        try {            while ((line=br.readLine()) != null) {                try {                    Date date = DateUtil.parseRFC822(line.substring(0, line.indexOf("\t")));                    String setCookie = line.substring(line.indexOf("\t")+1);                    cookies.add(new Cookie(date, setCookie));                } catch (ParseException pe) {                    System.err.println("Error parsing the cookie date : " + line);                }            }            br.close();        } catch (IOException ioe) {            throw new StoreException("Error reading cookiejar : " + ioe);        }        Cookie[] list = new Cookie[cookies.size()];        for (int i=0; i<cookies.size(); i++) {            list[i] = (Cookie) cookies.get(i);        }        return list;    }