public ArrayList getStructureData(String urlString, ArrayList list) { KeyValueBean keyValue = new KeyValueBean(); Element xmlElement = null; try { System.out.println("1"); ReadXML readXML = new ReadXML(); System.out.println("2"); String xmlString = readXML.convertFromURLToString(urlString); System.out.println("3"); xmlElement = readXML.getDocumentElementFromString(xmlString); System.out.println("9"); keyValue.setKey(readXML.getStringValueForXMLTag(xmlElement, "Code")); System.out.println("10"); keyValue.setValue(readXML.getStringValueForXMLTag(xmlElement, "Description")); System.out.println("11"); list.add(keyValue); } catch (Exception e) { e.printStackTrace(); } finally { xmlElement = null; } return list; }
public ArrayList get2DImageDataList(String urlString, ArrayList list) { try { ReadXML readXML = new ReadXML(); System.out.println("************************URLString is******************* - " + urlString); String xmlString = readXML.convertFromURLToString(urlString); System.out.println("XMLString is - " + xmlString); list = readXML.getImageData(xmlString); System.out.println("List Size is - " + list.size()); Iterator iterator = list.iterator(); /* CentralServiceVO vo = null; while (iterator.hasNext()) { vo = (CentralServiceVO)iterator.next(); //System.out.println("URL = "+vo.getWms()); //System.out.println("TFW Values = "+vo.getTfwValues()); } */ } catch (Exception e) { e.printStackTrace(); } return list; }
public EMAPServiceVO getPOIFromEMAPData(String urlString, EMAPServiceVO vo) { try { ReadXML readXML = new ReadXML(); String xmlString = readXML.convertFromURLToString(urlString); Element xmlElement = readXML.getDocumentElementFromString(xmlString); vo.setValue(readXML.getStringValueForXMLTag(xmlElement, "gml:pos")); } catch (Exception e) { e.printStackTrace(); } return vo; }