22 |
|
|
23 |
public class Side9Xml { |
public class Side9Xml { |
24 |
|
|
25 |
static final int WIDTH = 400; |
static final int WIDTH = 450; |
26 |
static final String BASEURL = "http://apps.todic.net/side9/"; |
static final String BASEURL = "http://apps.todic.net/side9/"; |
27 |
|
|
28 |
public static Document parseXML(String str) throws SAXException, IOException, ParserConfigurationException |
public static Document parseXML(String str) throws SAXException, IOException, ParserConfigurationException |
39 |
|
|
40 |
URL url = new URL(uri); |
URL url = new URL(uri); |
41 |
URLConnection connection = url.openConnection(); |
URLConnection connection = url.openConnection(); |
42 |
|
connection.setConnectTimeout(2500); |
43 |
InputStream is = connection.getInputStream(); |
InputStream is = connection.getInputStream(); |
44 |
|
|
45 |
try { |
try { |