@Immutable public final class PropertiesHelper extends Object
Properties class.| Modifier and Type | Method and Description |
|---|---|
static String |
expandProperties(String sValue,
Function<String,String> aValueProvider)
Special version of
expandSystemProperties(String) that takes an
arbitrary value provider and is not limited to system properties. |
static String |
expandSystemProperties(String sValue)
Copy of Oracle internal PropertyExpander.expand method
|
static ICommonsMap<String,String> |
getAsStringMap(Properties aProps) |
static NonBlockingProperties |
loadProperties(File aFile) |
static NonBlockingProperties |
loadProperties(File aFile,
Charset aCharset) |
static NonBlockingProperties |
loadProperties(InputStream aIS) |
static NonBlockingProperties |
loadProperties(IReadableResource aRes) |
static NonBlockingProperties |
loadProperties(IReadableResource aRes,
Charset aCharset) |
static NonBlockingProperties |
loadProperties(ISimpleURL aURL) |
static NonBlockingProperties |
loadProperties(Reader aReader) |
@Nonnull @ReturnsMutableCopy public static ICommonsMap<String,String> getAsStringMap(@Nonnull Properties aProps)
@Nullable public static NonBlockingProperties loadProperties(@Nonnull ISimpleURL aURL)
@Nullable public static NonBlockingProperties loadProperties(@Nonnull File aFile)
@Nullable public static NonBlockingProperties loadProperties(@Nonnull File aFile, @Nonnull Charset aCharset)
@Nullable public static NonBlockingProperties loadProperties(@Nonnull IReadableResource aRes)
@Nullable public static NonBlockingProperties loadProperties(@Nonnull IReadableResource aRes, @Nonnull Charset aCharset)
@Nullable public static NonBlockingProperties loadProperties(@Nonnull @WillClose InputStream aIS)
@Nullable public static NonBlockingProperties loadProperties(@Nonnull @WillClose Reader aReader)
@Nullable public static String expandSystemProperties(@Nullable String sValue)
sValue - Source value. May be null.null if source is null.expandProperties(String, Function)@Nullable public static String expandProperties(@Nullable String sValue, @Nonnull Function<String,String> aValueProvider)
expandSystemProperties(String) that takes an
arbitrary value provider and is not limited to system properties.sValue - Source value. May be null.aValueProvider - The value provider to be used. May not be null.null if the source value is null.Copyright © 2014–2022 Philip Helger. All rights reserved.