public final class PropertyMapper extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
map(InputStream propertyInputStream,
Composite composite)
Load a Properties object from the given stream, close it, and then populate
the Composite with the properties.
|
static void |
map(Properties props,
Composite composite)
Populate the Composite with properties from the given properties object.
|
static Properties |
toJavaProperties(Composite composite)
Create Properties object which is backed by the given Composite.
|
public static void map(Properties props, Composite composite) throws IllegalArgumentException
props - properties objectcomposite - the composite instanceIllegalArgumentException - if properties could not be transferred to compositepublic static void map(InputStream propertyInputStream, Composite composite) throws IOException
propertyInputStream - properties input streamcomposite - the instanceIOException - if the stream could not be readpublic static Properties toJavaProperties(Composite composite)
composite - the instance