this(DEFAULT_SETTINGS);
}
public HelloMinecraftLookAndFeel(Map<String, String> settings) throws ParseException {
try {
try (InputStream is = HelloMinecraftLookAndFeel.class.getResourceAsStream("/org/jackhuang/hellominecraft/lookandfeel/synth.xml")) {
<BUG>String s = IOUtils.getStreamContent(is, "UTF-8");
</BUG>
for (Map.Entry<String, String> ss : settings.entrySet())
s = s.replace("${" + ss.getKey() + "}", ss.getValue());
load(new ByteArrayInputStream(s.getBytes("UTF-8")), HelloMinecraftLookAndFeel.class);

this(DEFAULT_SETTINGS);
}
public HelloMinecraftLookAndFeel(Map<String, String> settings) throws ParseException {
try {
try (InputStream is = HelloMinecraftLookAndFeel.class.getResourceAsStream("/org/jackhuang/hellominecraft/lookandfeel/synth.xml")) {
String s = IOUtils.toString(is, "UTF-8");
for (Map.Entry<String, String> ss : settings.entrySet())
s = s.replace("${" + ss.getKey() + "}", ss.getValue());
load(new ByteArrayInputStream(s.getBytes("UTF-8")), HelloMinecraftLookAndFeel.class);
