summaryrefslogtreecommitdiffstats
path: root/src/javax/vecmath/VecMathI18N.java
diff options
context:
space:
mode:
authorKevin Rushforth <[email protected]>2004-06-09 02:52:37 +0000
committerKevin Rushforth <[email protected]>2004-06-09 02:52:37 +0000
commitdf69463d936326e3f44453e9b9987b96272ae5d9 (patch)
treec0aa5a160cd3a4e9bdbd201a0e6a2c35ce763e4f /src/javax/vecmath/VecMathI18N.java
parent8d04fe6c33678b770bbd5c7747ca21e565648222 (diff)
Initial creation of vecmath sources in CVS repository
git-svn-id: https://svn.java.net/svn/vecmath~svn/trunk@5 dd45e54d-f42e-c781-df72-dca083a658b1
Diffstat (limited to 'src/javax/vecmath/VecMathI18N.java')
-rw-r--r--src/javax/vecmath/VecMathI18N.java31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/javax/vecmath/VecMathI18N.java b/src/javax/vecmath/VecMathI18N.java
new file mode 100644
index 0000000..d142325
--- /dev/null
+++ b/src/javax/vecmath/VecMathI18N.java
@@ -0,0 +1,31 @@
+/*
+ * $RCSfile$
+ *
+ * Copyright (c) 2004 Sun Microsystems, Inc. All rights reserved.
+ *
+ * Use is subject to license terms.
+ *
+ * $Revision$
+ * $Date$
+ * $State$
+ */
+
+package javax.vecmath;
+
+import java.io.*;
+import java.util.*;
+
+
+class VecMathI18N {
+ static String getString(String key) {
+ String s;
+ try {
+ s = (String) ResourceBundle.getBundle("javax.vecmath.ExceptionStrings").getString(key);
+ }
+ catch (MissingResourceException e) {
+ System.err.println("VecMathI18N: Error looking up: " + key);
+ s = key;
+ }
+ return s;
+ }
+}