com.zphinx.spine.utils
Class MessagePropertyBundle
java.lang.Object
java.util.ResourceBundle
java.util.PropertyResourceBundle
com.zphinx.spine.utils.MessagePropertyBundle
public abstract class MessagePropertyBundle
- extends PropertyResourceBundle
MessagePropertyBundle adds the ability to store a ResourceBundle back to it's original location in its original format.ResourceBundles are normally read only objects of which data storage is not possible.
- Version:
- $1.0
Copyright ©Zphinx Software Solutions
- Author:
- David Ladapo
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MessagePropertyBundle
public MessagePropertyBundle(InputStream stream)
throws IOException
- Public Constructor
- Parameters:
stream - The input stream from which a bundle is retrieved
- Throws:
IOException - Throw an IOException if an error occurs
store
public void store(OutputStream out,
Properties props)
- Saves the properties object
- Parameters:
out - The outputStream to useprops - The properties object to store
saveStream
public static void saveStream(String className,
Locale locale,
Properties props)
throws SpineException
- Gets the outputStream used to store the properties object
- Parameters:
className - The fullName of the properties filelocale - The Locale of the properties file to loadprops - The properties object to use
- Throws:
SpineException