(FileHandle handle)
| 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); |