public class LocalizedPropertiesLoader extends java.lang.Object
| Constructor and Description |
|---|
LocalizedPropertiesLoader(java.io.InputStream ins)
Creates a new loader that will load the properties from the given input stream
using the default character encoding
|
LocalizedPropertiesLoader(java.io.InputStream ins,
java.lang.String encoding)
Creates a new loader that will load the properties from the given input stream
using the provided character encoding
|
LocalizedPropertiesLoader(java.io.Reader reader)
Creates a new loader that will load the properties from the given reader
|
| Modifier and Type | Method and Description |
|---|---|
void |
load(java.util.Map properties)
Read the properties from the provided stream and store them into the given map
|
public LocalizedPropertiesLoader(java.io.InputStream ins)
ins - the input stream to load the properties frompublic LocalizedPropertiesLoader(java.io.InputStream ins, java.lang.String encoding) throws java.io.UnsupportedEncodingException
ins - the input stream to load the properties fromencoding - the character encoding the be used when reading from the streamjava.io.UnsupportedEncodingException - if the name of the encoding cannot be recognizedpublic LocalizedPropertiesLoader(java.io.Reader reader)
reader - the Reader to load the properties frompublic void load(java.util.Map properties) throws java.io.IOException
properties - the map where the properties will be storedjava.io.IOException - if an error occurs