public Map < String , List < ? extends SipApplicationRouterInfo > > parse ( String configuration ) throws ParseException { Properties tempProperties = new Properties ( ) ; // tempProperties.load(new StringReader(configuration)); // This needs Java 1.6 ByteArrayInputStream stringStream = new ByteArrayInputStream ( configuration . getBytes ( ) ) ; try { tempProperties . load ( stringStream ) ; } catch ( IOException e ) { log . warn ( "Failed to update AR configuration. Will use the old properties." ) ; return null ; } this . properties = tempProperties ; return parse ( ) ; }
Same method as above but loads DAR configuration from a string .