Topics Topics Help/Instructions Help Edit Profile Profile Member List Register Paatha Gnyapakaalu - Archives from Old DB  
Search New Posts 1 | 2 | 8 Hours Search New Posts 1 | 3 | 7 Days Search Search Tree View Tree View Latest tweets Live Tweets   Hide Images

Rate this post by selecting a number. 1 is the worst and 5 is the best.

    (Worst)    1    2    3    4    5     (Best)

Author Message
Top of pagePrevious messageNext messageBottom of page Link to this message

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);
}

}

Topics | Last Hour | Last Day | Last Week | Tree View | Search | Help/Instructions | Program Credits Administration