Lines Matching refs:serializer
217 XmlSerializer serializer = new FastXmlSerializer();
218 serializer.setOutput(new BufferedOutputStream(os), "utf-8");
219 saveToXml(serializer);
220 serializer.flush();
269 private void saveToXml(XmlSerializer serializer) throws IOException {
270 serializer.startDocument(null, true);
271 serializer.setFeature("http://xmlpull.org/v1/doc/features.html#indent-output", true);
272 serializer.startTag(null, "display-manager-state");
273 serializer.startTag(null, "remembered-wifi-displays");
275 serializer.startTag(null, "wifi-display");
276 serializer.attribute(null, "deviceAddress", display.getDeviceAddress());
277 serializer.attribute(null, "deviceName", display.getDeviceName());
279 serializer.attribute(null, "deviceAlias", display.getDeviceAlias());
281 serializer.endTag(null, "wifi-display");
283 serializer.endTag(null, "remembered-wifi-displays");
284 serializer.endTag(null, "display-manager-state");
285 serializer.endDocument();