00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 package com.ohrasys.app.gdsparser;
00020 import java.io.*;
00021 import java.util.*;
00022
00031 final class GDSParserI18NFactory {
00033 protected static final String res =
00034 "com/ohrasys/app/gdsparser/GDSParserProperties" ;
00035
00037 public static final String i18n_INFO = "I18N_INFO" ;
00038
00040 public static final String i18n_ERROR = "I18N_ERROR" ;
00041
00043 public static final String i18n_INFO_LOG_SET_TO =
00044 "I18N_INFO_LOG_SET_TO" ;
00045
00047 public static final String i18n_INFO_GDS_SET_TO =
00048 "I18N_INFO_GDS_SET_TO" ;
00049
00051 public static final String i18n_INFO_DONE = "I18N_INFO_DONE" ;
00052
00054 public static final String i18n_USAGE_START = "I18N_USAGE_START" ;
00055
00057 public static final String i18n_APP_VERSION = "I18N_APP_VERSION" ;
00058
00060 public static final String i18n_APP_COPY = "I18N_APP_COPY" ;
00061
00063 public static final String i18n_APP_TITLE = "I18N_APP_TITLE" ;
00064
00066 public static final String i18n_ERROR_TITLE = "I18N_ERROR_TITLE" ;
00067
00075 public static String getString(String key) {
00076 return ResourceBundle.getBundle(res).getString(key);
00077 }
00078
00087 public static String sprintf(String format, Object... args) {
00088 StringWriter s = new StringWriter(format.length() * 2);
00089 PrintWriter p = new PrintWriter(s);
00090 p.printf(format, args);
00091 p.flush();
00092 String result = s.toString();
00093 p.close();
00094 try {
00095 s.close();
00096 } catch(IOException e) {
00097
00098 }
00099
00100 return result;
00101 }
00102
00108 public String toString(){return super.toString();}
00109 }
00110
00111
00112
00113