if (false) { String filename = "sipProvider 86.html"; Debug.msg("Debug mode: Loading " + filename); try { data = ""; String thisLine; BufferedReader in = new BufferedReader(new FileReader(filename)); while ((thisLine = in.readLine()) != null) { data += thisLine; } in.close(); } catch (IOException e) { Debug.err("File not found: " + filename); } }
    public static Vector retrieveSipProvider(String box_address,            String box_password, FritzBoxFirmware firmware)            throws WrongPasswordException, IOException,            InvalidFirmwareException {        if (firmware == null)            throw new InvalidFirmwareException("No valid firmware");        String postdata = firmware.getAccessMethod() + POSTDATA_SIPPROVIDER                + URLEncoder.encode(box_password, "ISO-8859-1");        String urlstr = "http://" + box_address + "/cgi-bin/webcm";        String data = fetchDataFromURL(urlstr, postdata);        Vector list = parseSipProvider(data);        return list;    }