src/org/objectweb/cjdbc/common/i18n/I18N.java

説明を見る。
00001 00025 package org.objectweb.cjdbc.common.i18n; 00026 00027 import java.text.MessageFormat; 00028 import java.util.ResourceBundle; 00029 00036 public abstract class I18N 00037 { 00045 public static String get(ResourceBundle bundle, String key) 00046 { 00047 try 00048 { 00049 return bundle.getString(key); 00050 } 00051 catch (Exception e) 00052 { 00053 return key; 00054 } 00055 } 00056 00065 public static String get(ResourceBundle bundle, String key, boolean parameter) 00066 { 00067 return MessageFormat.format(get(bundle, key), new Object[]{String 00068 .valueOf(parameter)}); 00069 } 00070 00079 public static String get(ResourceBundle bundle, String key, int parameter) 00080 { 00081 return MessageFormat.format(get(bundle, key), new Object[]{String 00082 .valueOf(parameter)}); 00083 } 00084 00093 public static String get(ResourceBundle bundle, String key, long parameter) 00094 { 00095 return MessageFormat.format(get(bundle, key), new Object[]{String 00096 .valueOf(parameter)}); 00097 } 00098 00110 public static String get(ResourceBundle bundle, String key, 00111 Object[] parameters) 00112 { 00113 return MessageFormat.format(get(bundle, key), parameters); 00114 } 00115 00124 public static String get(ResourceBundle bundle, String key, Object parameter) 00125 { 00126 return MessageFormat.format(get(bundle, key), new Object[]{parameter}); 00127 } 00128 00129 }

CJDBCversion1.0.4に対してTue Oct 12 15:15:57 2004に生成されました。 doxygen 1.3.8