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

Method parseXml

core/src/com/agateau/utils/FileUtils.java:90–98  ·  view source on GitHub ↗
(FileHandle handle)

Source from the content-addressed store, hash-verified

88 }
89
90 public static XmlReader.Element parseXml(FileHandle handle) {
91 XmlReader reader = new XmlReader();
92 XmlReader.Element root = reader.parse(handle);
93 if (root == null) {
94 NLog.e("Failed to parse xml file from %s. No root element.", handle.path());
95 return null;
96 }
97 return root;
98 }
99
100 public static String readUtf8(final InputStream in) throws IOException {
101 InputStreamReader reader = new InputStreamReader(in, StandardCharsets.UTF_8);

Callers 7

loadMethod · 0.95
LanguagesMethod · 0.95
getAllMethod · 0.95
loadCreditsXmlMethod · 0.95
loadMethod · 0.95
getMethod · 0.95
buildMethod · 0.95

Calls 2

eMethod · 0.95
parseMethod · 0.65

Tested by

no test coverage detected