|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.aduna.gee.publication.net.WStorable
info.aduna.gee.publication.Local
public class Local
The class
| Field Summary | |
|---|---|
protected static Hashtable |
_langToCatalogue
The key is the language name (e.g. |
protected static Hashtable |
_threadToLanguage
The key is a thread, the value a language name (e.g. |
| Fields inherited from class info.aduna.gee.publication.net.WStorable |
|---|
_isStorable, _lastModified, BASE64ENCODING, GZIPCOMPRESSION, NONE, WLZ77COMPRESSION |
| Fields inherited from interface info.aduna.gee.publication.net.FileNames |
|---|
ASA_FILE_NAME, BAK_FILE_NAME, CAT_FILE_NAME, CFG_FILE_NAME, CHS_FILE_NAME, DAT_FILE_NAME, HLP_FILE_NAME, LOCAL_FILE_PREFIX, SBS_FILE_NAME, SSS_FILE_NAME, WIF_FILE_NAME |
| Constructor Summary | |
|---|---|
Local()
|
|
| Method Summary | |
|---|---|
Object |
clone()
Required by WStorable! For Internet Explorer 3.x it is NOT sufficient that clone() is implemented in Object .... |
static void |
forgetLanguage()
Forget the language settings for the current thread. |
static String |
get(int key)
Get a localized string from the database with strings. |
static String |
getLanguageName()
Return the name of the language currently in use. |
void |
load(InputStream input,
int version)
Loads localized string information. |
static void |
loadLanguage(InputHandler langInput,
String userLanguages,
String serverLanguages,
String serverLanguage)
Load the requested language. |
static void |
setLanguage(Thread thread)
Use this when a (new) thread should inherit the language of the current thread. |
void |
store(OutputStream ignore)
Stores localized string information. |
| Methods inherited from class info.aduna.gee.publication.net.WStorable |
|---|
destroy, getCompression, getEncoding, getLastModified, getVersion, isStorable, setLastModified, setStorable, toSeconds |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static Hashtable _langToCatalogue
protected static Hashtable _threadToLanguage
| Constructor Detail |
|---|
public Local()
| Method Detail |
|---|
public static void forgetLanguage()
public static String getLanguageName()
public static void setLanguage(Thread thread)
public static void loadLanguage(InputHandler langInput,
String userLanguages,
String serverLanguages,
String serverLanguage)
langInput - The inputHandler to use.userLanguages - The string of preferred languages.serverLanguages - The server supported languages.serverLanguage - The server preferred language.
public void load(InputStream input,
int version)
throws IOException
load in class WStorableinput - the input stream to load from. null to use the
default hardcoded strings.version - the version of the localized information to
load
IOExceptionpublic void store(OutputStream ignore)
store in class WStorableignore - ignored, method not implemented.public Object clone()
clone in class WStorablepublic static String get(int key)
key - the key of the string to extract from the localized
database.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||