public static class AbstractStreamBasedPropertySource.ConstructingProperties extends Properties
Properties
which populates itself with a given InputStream.
The given InputStream is silently closed after properties have been loaded.defaults
Constructor and Description |
---|
ConstructingProperties(InputStream in,
String path) |
Modifier and Type | Method and Description |
---|---|
protected void |
loadAndClose(InputStream in) |
String |
toString() |
getProperty, getProperty, list, list, load, load, loadFromXML, propertyNames, save, setProperty, store, store, storeToXML, storeToXML, stringPropertyNames
clear, clone, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keys, keySet, merge, put, putAll, putIfAbsent, rehash, remove, remove, replace, replace, replaceAll, size, values
public ConstructingProperties(InputStream in, String path) throws IOException
in
- the InputStream to load properties from.path
- optional reference to a path describing where the given InputStream has been opened from.IOException
protected void loadAndClose(InputStream in) throws IOException
IOException
Copyright © 2003–2017 Magnolia International Ltd.. All rights reserved.