play.utils.OrderSafeProperties Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of framework Show documentation
Show all versions of framework Show documentation
RePlay is a fork of the Play1 framework, created by Codeborne.
package play.utils;
import java.io.IOException;
import java.io.InputStream;
import java.io.StringReader;
import java.util.Collections;
import java.util.Enumeration;
import java.util.LinkedHashSet;
import java.util.Map;
import java.util.Set;
import static java.nio.charset.StandardCharsets.UTF_8;
import static java.util.stream.Collectors.joining;
import static org.apache.commons.io.IOUtils.readLines;
import static org.apache.commons.text.StringEscapeUtils.escapeJava;
/**
* Custom impl of java.util.properties that preserves the key-order from the file
* and that reads the properties-file in utf-8
*/
public class OrderSafeProperties extends java.util.Properties {
// set used to preserve key order
private final LinkedHashSet
© 2015 - 2024 Weber Informatics LLC | Privacy Policy