MCPcopy Create free account
hub / github.com/agateau/pixelwheels / Languages

Method Languages

core/src/com/agateau/pixelwheels/Languages.java:37–49  ·  view source on GitHub ↗
(FileHandle handle)

Source from the content-addressed store, hash-verified

35 private final Array<Language> mLanguages = new Array<>();
36
37 public Languages(FileHandle handle) {
38 if (!handle.exists()) {
39 throw new RuntimeException("No such file " + handle.name());
40 }
41
42 XmlReader.Element root = FileUtils.parseXml(handle);
43 for (XmlReader.Element element : root.getChildrenByName("FontSet")) {
44 loadFontSet(element);
45 }
46 for (XmlReader.Element element : root.getChildrenByName("Language")) {
47 loadLanguage(element);
48 }
49 }
50
51 public String findBestLanguageId() {
52 String lang = Locale.getDefault().getLanguage();

Callers

nothing calls this directly

Calls 3

parseXmlMethod · 0.95
loadFontSetMethod · 0.95
loadLanguageMethod · 0.95

Tested by

no test coverage detected