1 16 17 package javax.servlet.jsp.jstl.fmt; 18 19 import java.util.Locale ; 20 import java.util.ResourceBundle ; 21 22 35 36 public class LocalizationContext { 37 38 final private ResourceBundle bundle; 40 41 final private Locale locale; 43 44 47 public LocalizationContext() { 48 bundle = null; 49 locale = null; 50 } 51 52 62 public LocalizationContext(ResourceBundle bundle, Locale locale) { 63 this.bundle = bundle; 64 this.locale = locale; 65 } 66 67 75 public LocalizationContext(ResourceBundle bundle) { 76 this.bundle = bundle; 77 this.locale = bundle.getLocale(); 78 } 79 80 86 public ResourceBundle getResourceBundle() { 87 return bundle; 88 } 89 90 97 public Locale getLocale() { 98 return locale; 99 } 100 } 101 102 | Popular Tags |