get Java Resource Bundle - Android Android OS

Android examples for Android OS:Bundle Get

Description

get Java Resource Bundle

Demo Code


//package com.book2s;
import java.util.ResourceBundle;

public class Main {
    private static final String CONF_PATH = "conf.system";
    private static ResourceBundle resourceBundle;

    public static ResourceBundle getResourceBundle() {
        if (resourceBundle == null) {
            resourceBundle = ResourceBundle.getBundle(CONF_PATH);
        }/* w  ww.jav a 2 s  .  com*/
        return resourceBundle;
    }
}

Related Tutorials