public final class PropertiesUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static Properties |
getAllPropertiesContaining(Properties properties,
String searchString)
Filter properties by key part.
|
static Properties |
getAllPropertiesWithPrefix(Properties properties,
String prefix)
Filter properties by key prefix.
|
static Properties |
getFilteredProperties(Properties properties,
Pattern filter)
Filter properties by regular expression.
|
static Properties |
loadProperties(Properties properties,
String filePath)
Load properties from file.
|
static Properties |
loadProperties(String filePath)
Load properties from file.
|
public static Properties getAllPropertiesContaining(Properties properties, String searchString)
properties - to filtersearchString - to filter bypublic static Properties getAllPropertiesWithPrefix(Properties properties, String prefix)
properties - to filterprefix - to filter bypublic static Properties getFilteredProperties(Properties properties, Pattern filter)
properties - to filterfilter - regex pattern to filter bypublic static Properties loadProperties(Properties properties, String filePath)
properties - to fill from filefilePath - to properties filepublic static Properties loadProperties(String filePath)
filePath - to properties fileCopyright © 2017–2022 wcm.io QA. All rights reserved.