Krishna_jilla
Kurra Bewarse Username: Krishna_jilla
Post Number: 1868 Registered: 04-2015 Posted From: 143.115.155.58
Rating: N/A Votes: 0 | Posted on Wednesday, October 07, 2015 - 4:30 pm: | |
String xml = rs.getBytes(COLUMN_HEADER).toString(); LOG.info("Kishore : Msg Header in DAO RS from Database {} ", xml); if(null != xml){ try { LOG.info("Kishore:Database {} ", xml); xml = xml.replaceAll("<!--XML Conversion-->", "<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd\">"); ByteArrayInputStream bos = new ByteArrayInputStream(xml.getBytes("UTF-8")); Properties properties = new Properties(); properties.loadFromXML(bos); LOG.info("Kishore Properties from DAO RS {} ", properties); dt.setProperties(properties); LOG.info("Kishore Null Check for properties in DAO RS {} ", dt.getProperties()); } catch (IOException e) { LOG.info("Exception happened while converting header xml into properties ", e); } } |