Code example for PropertyResourceBundle

Methods: handleGetObject

0
 
        if (bundle instanceof PropertyResourceBundle)
        { 
            PropertyResourceBundle pBundle = (PropertyResourceBundle) bundle;
 
            objMsg = pBundle.handleGetObject(bundleName);
        } 
        else if (bundle instanceof XMLResourceBundle)
        { 
            XMLResourceBundle xmlBundle = (XMLResourceBundle) bundle;
 
            objMsg = xmlBundle.handleGetObject(bundleName);
        } 
 
        // If there is no bundle for the given bundle name we return the bundleName that was 
        // passed!!!!! 
        if (objMsg != null) 
        { 
            return MessageFormat.format(objMsg.toString(), arguments);
        } 
Experience pair programming with AI  Get Codota for Java