Got an iPhone or iPad? We have a brand new Pastebin App for both devices, and it's totally free! Click here to download the new Pastebin App for iOS.
Guest

Untitled

By: a guest on Feb 12th, 2012  |  syntax: Java  |  size: 0.77 KB  |  hits: 58  |  expires: Never
download  |  raw  |  embed  |  report abuse
Copied
  1. public String prepareOnlineSearchURL(String server) throws MalformedURLException, IOException {
  2.         choice = 3;
  3.         choiceSearchULR();
  4.         server = server.replaceAll(" ", "+");
  5.         urltibia = new URL(mainurl, server);
  6.         return getSiteContent();
  7.     }
  8.    
  9.     private void choiceSearchULR() throws MalformedURLException {
  10.         switch(choice) {
  11.             case 1: mainurl = new URL("http://www.tibia.com/community/?subtopic=characters&name=");
  12.             break;
  13.             case 2: mainurl = new URL("http://www.tibia.com/community/?subtopic=guilds&page=view&GuildName=");
  14.             break;
  15.             case 3: mainurl = new URL("http://www.tibia.com/community/?subtopic=worlds&world=");
  16.             break;
  17.             //--
  18.         }
  19.     }