wt.util.resource
Class SerializedResourceBundle

java.lang.Object
  extended byjava.util.ResourceBundle
      extended bywt.util.resource.SerializedResourceBundle
All Implemented Interfaces:
Externalizable, Serializable
Direct Known Subclasses:
CompositeSerializedResourceBundle

public class SerializedResourceBundle
extends ResourceBundle
implements Externalizable



Supported API: false

Extendable: false

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class java.util.ResourceBundle
 
Field Summary
static String BUNDLE_EXTENSION
          

Supported API: false
private static Hashtable cacheList
           
private static String CLASSNAME
           
static long EXTERNALIZATION_VERSION_UID
           
private static boolean L10N_COMPLETE
           
private  Dictionary lookup
           
private  String name
           
protected static long OLD_FORMAT_VERSION_UID
           
private static String RESOURCE
           
(package private) static long serialVersionUID
           
 
Fields inherited from class java.util.ResourceBundle
parent
 
Constructor Summary
SerializedResourceBundle()
          

Supported API: false
SerializedResourceBundle(Dictionary keyValues)
          

Supported API: false
SerializedResourceBundle(Reader input)
          

Supported API: false
 
Method Summary
 boolean containsKey(String key)
           
 Enumeration getKeys()
           
static ResourceBundle getSerializedBundle(String baseName)
          Get the appropriate SerializedResourceBundle instance.
static ResourceBundle getSerializedBundle(String baseName, Locale locale)
          Get the appropriate SerializedResourceBundle instance.
protected  Object handleGetObject(String key)
           
static void main(String[] argv)
           
 void readExternal(ObjectInput input)
          Reads the non-transient fields of this class from an external source.
private  boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone)
          Reads the non-transient fields of this class from an external source, which is not the current version.
protected  void setContents(Dictionary keyValues)
           
protected  void setupParent(String baseName, String localeName)
           
 String toString()
           
 void writeExternal(ObjectOutput output)
          Writes the non-transient fields of this class to an external source.
 
Methods inherited from class java.util.ResourceBundle
getBundle, getBundle, getBundle, getLocale, getObject, getString, getStringArray, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

BUNDLE_EXTENSION

public static final String BUNDLE_EXTENSION


Supported API: false

See Also:
Constant Field Values

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values

EXTERNALIZATION_VERSION_UID

public static final long EXTERNALIZATION_VERSION_UID
See Also:
Constant Field Values

OLD_FORMAT_VERSION_UID

protected static final long OLD_FORMAT_VERSION_UID
See Also:
Constant Field Values

lookup

private Dictionary lookup

cacheList

private static Hashtable cacheList

name

private String name

L10N_COMPLETE

private static final boolean L10N_COMPLETE
Constructor Detail

SerializedResourceBundle

public SerializedResourceBundle()


Supported API: false


SerializedResourceBundle

public SerializedResourceBundle(Dictionary keyValues)


Supported API: false

Parameters:
keyValues -

SerializedResourceBundle

public SerializedResourceBundle(Reader input)


Supported API: false

Parameters:
input -
Method Detail

writeExternal

public void writeExternal(ObjectOutput output)
                   throws IOException
Writes the non-transient fields of this class to an external source.

Supported API: false

Specified by:
writeExternal in interface Externalizable
Parameters:
output -
Throws:
IOException

readExternal

public void readExternal(ObjectInput input)
                  throws IOException,
                         ClassNotFoundException
Reads the non-transient fields of this class from an external source.

Supported API: false

Specified by:
readExternal in interface Externalizable
Parameters:
input -
Throws:
IOException
ClassNotFoundException

getSerializedBundle

public static ResourceBundle getSerializedBundle(String baseName)
                                          throws MissingResourceException
Get the appropriate SerializedResourceBundle instance.

Supported API: false

Parameters:
baseName -
Returns:
ResourceBundle
Throws:
MissingResourceException

getSerializedBundle

public static ResourceBundle getSerializedBundle(String baseName,
                                                 Locale locale)
                                          throws MissingResourceException
Get the appropriate SerializedResourceBundle instance.

Supported API: false

Parameters:
baseName -
locale -
Returns:
ResourceBundle
Throws:
MissingResourceException

readOldVersion

private boolean readOldVersion(ObjectInput input,
                               long readSerialVersionUID,
                               boolean passThrough,
                               boolean superDone)
                        throws IOException,
                               ClassNotFoundException
Reads the non-transient fields of this class from an external source, which is not the current version.

Parameters:
input -
readSerialVersionUID -
passThrough -
superDone -
Returns:
boolean
Throws:
IOException
ClassNotFoundException

setContents

protected void setContents(Dictionary keyValues)

handleGetObject

protected Object handleGetObject(String key)

getKeys

public Enumeration getKeys()

setupParent

protected void setupParent(String baseName,
                           String localeName)
                    throws IOException,
                           ClassNotFoundException,
                           WTException
Throws:
IOException
ClassNotFoundException
WTException

toString

public String toString()

main

public static void main(String[] argv)

containsKey

public boolean containsKey(String key)