vl4d Posted July 29, 2011 Posted July 29, 2011 kala re file mas douleuete?mia eine fail epic la8os sto full tou ex3tr3m ke mia eine full la8i sto import? ;S emena pantos dn m perni ta import kan ! re a8ou den nio8is apo java ti 8es na sto dosoun gia to diko sou pack?? akou eki einai la9os ta import toso diskolo na ta ala3is ee??
drgn Posted September 14, 2011 Posted September 14, 2011 Mou vgazei auto to error : Uploaded with ImageShack.us Edit:to dior8wsa alla vgazei ena paromoio twra :/ anti gia GeneralISTPool-11 grafei GeneralISTPool-3 ... An mporei kapoios as voh8isei Thanks!
`NeverMore Posted September 16, 2011 Posted September 16, 2011 Mou vgazei auto to error : Uploaded with ImageShack.us Edit:to dior8wsa alla vgazei ena paromoio twra :/ anti gia GeneralISTPool-11 grafei GeneralISTPool-3 ... An mporei kapoios as voh8isei Thanks! DIkse mas Photo apo to neo problem..! Epishs prosexe na eisai sindedemenos sto internet ...aliws epeidh dn mporei na sinde8ei logiko einai na s petaei error sto GS console...!
GoldenBoy™ Posted September 20, 2011 Author Posted September 20, 2011 Mou vgazei auto to error : Uploaded with ImageShack.us Edit:to dior8wsa alla vgazei ena paromoio twra :/ anti gia GeneralISTPool-11 grafei GeneralISTPool-3 ... An mporei kapoios as voh8isei Thanks! Κάνε import java.net.URLConnection; Βάλε ως σχόλιο την γραμμή : isr = new InputStreamReader(url.openStream()); Δηλαδή κάπως έτσι : //isr = new InputStreamReader(url.openStream()); Πρόσθεσε αυτό: URLConnection con = (URLConnection) url.openConnection(); con.addRequestProperty("User-Agent", "Mozilla/4.76"); isr = new InputStreamReader(con.getInputStream()); Θα πρέπει να είναι κάπως έτσι το τελικό αποτέλεσμα : try { URL url = new URL(urlString); +URLConnection con = (URLConnection) url.openConnection(); +con.addRequestProperty("User-Agent", "Mozilla/4.76"); +isr = new InputStreamReader(con.getInputStream()); //isr = new InputStreamReader(url.openStream()); in = new BufferedReader(isr); String inputLine; int voteCount = 0; Ελπίζω να σε κάλυψα! :) Edit: Ευχαριστώ τον panos9999 για την βοήθεια! :D
Mhoska Posted September 29, 2011 Posted September 29, 2011 Mou vgazei auto to error : Uploaded with ImageShack.us Edit:to dior8wsa alla vgazei ena paromoio twra :/ anti gia GeneralISTPool-11 grafei GeneralISTPool-3 ... An mporei kapoios as voh8isei Thanks! i got the same error but i dont understan GR D: can someone xplain this to me in english?
planetnet Posted October 9, 2011 Posted October 9, 2011 edo ke kana 3 mero de litirgi sto topzone kseri kanenas giati :)
Malamandre Posted November 1, 2011 Posted November 1, 2011 Nice share and adpt bro!Thank you for sharing it!
An4rchy Posted March 18, 2012 Posted March 18, 2012 + private int getVotes(String urlString) + { + InputStreamReader isr = null; + BufferedReader in = null; + try + { + URL url = new URL(urlString); + isr = new InputStreamReader(url.openStream()); + in = new BufferedReader(isr); + String inputLine; + int voteCount = 0; + while ((inputLine = in.readLine()) != null) + { + if (inputLine.contains("moreinfo_total_rank_text")) + { + int Sub = 12; + switch (inputLine.length()) + { + case 116: + Sub = 13; + break; + case 117: + Sub = 14; + break; + case 118: + Sub = 15; + break; + case 119: + Sub = 16; + break; + } + voteCount = Integer.parseInt(inputLine.substring(inputLine.length() - Sub, inputLine.length() - 11)); + break; + } + } + return voteCount; + } + catch (IOException e) + { + e.printStackTrace(); + return 0; + } + finally + { + try + { + in.close(); + } + catch (IOException e) + { + + } + try + { + isr.close(); + } + catch (IOException e) + { + + } + } + } :/ So much drama to get a server's vote count...
l22expert Posted March 24, 2012 Posted March 24, 2012 nise share fia makes topzone? i have problem make vote and this say 0 voye 15 vote reward but dont work ftreya l2j how fix
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now