User:Peruvianllama/Sandbox/VF

public void run {			webpage = new String(""); tmp = new String; oldstatus = config.statusLabel.getText; config.statusLabel.setText("Importing admins from " + l					+ " (may take a few moments)"); try {				adminURL = new URL(						"http://"						+ l						+ ".org/w/index.php?title=Special:Listusers&group=sysop&limit=5000&offset=0"); //+ ".org/w/index.php?title=Special:Listadmins&limit=2000&offset=0");				adminbuf = new BufferedInputStream(adminURL.openConnection .getInputStream);				i = adminbuf.available;				config.whitelistList.clearSelection;

while (i > 0) {					byte b[] = new byte[i]; adminbuf.read(b); webpage = new String(webpage + new String(b)); // Delay here otherwise there won't be anything available // for next read Thread.sleep(100); i = adminbuf.available; }				Pattern p = Pattern .compile("= 0; j--) if (config.whitelistModel.contains((String) data.editstableModel .getValueAt(j, config.editorcol) + "#"							+ (String) data.editstableModel .getValueAt(j, config.projectcol))) data.editstableModel.removeRow(j); cleanup("Successfully imported admins from " + l); }			catch (Exception exc) {				int tmp = data.editstableModel.getRowCount; for (j = tmp - 1; j >= 0; j--) if (config.whitelistModel.contains((String) data.editstableModel .getValueAt(j, config.editorcol) + "#"							+ (String) data.editstableModel .getValueAt(j, config.projectcol))) data.editstableModel.removeRow(j); cleanup("Failed to import admins from " + l); }			config.whitelistList.clearSelection; }