public final class PropertiesUtil
extends java.lang.Object
Constructor and Description |
---|
PropertiesUtil() |
Modifier and Type | Method and Description |
---|---|
static java.util.Map<java.lang.String,java.lang.String> |
loadProperties(java.io.Reader reader)
Like
Properties.load(Reader) , but preserves the order of key/value pairs. |
static void |
processProperties(java.io.Reader reader,
java.util.function.BiConsumer<java.lang.String,java.lang.String> consumer) |
public static java.util.Map<java.lang.String,java.lang.String> loadProperties(java.io.Reader reader) throws java.io.IOException
Properties.load(Reader)
, but preserves the order of key/value pairs.java.io.IOException
public static void processProperties(java.io.Reader reader, java.util.function.BiConsumer<java.lang.String,java.lang.String> consumer) throws java.io.IOException
java.io.IOException