Android Utililty Methods XML Serializer Write

List of utility methods to do XML Serializer Write

Description

The list of methods to do XML Serializer Write are organized into topic(s).

Method

voidwriteListXml(List val, String name, XmlSerializer out)
Flatten a List into an XmlSerializer.
if (val == null) {
    out.startTag(null, "null");
    out.endTag(null, "null");
    return;
out.startTag(null, "list");
if (name != null) {
    out.attribute(null, "name", name);
...
voidwriteListXml(List val, String name, XmlSerializer out)
Flatten a List into an XmlSerializer.
if (val == null) {
    out.startTag(null, "null");
    out.endTag(null, "null");
    return;
out.startTag(null, "list");
if (name != null) {
    out.attribute(null, "name", name);
...
voidwriteListXml(List val, String name, XmlSerializer out)
Flatten a List into an XmlSerializer.
if (val == null) {
    out.startTag(null, "null");
    out.endTag(null, "null");
    return;
out.startTag(null, "list");
if (name != null) {
    out.attribute(null, "name", name);
...
voidwriteLongArrayXml(long[] val, String name, XmlSerializer out)
Flatten a long[] into an XmlSerializer.
if (val == null) {
    out.startTag(null, "null");
    out.endTag(null, "null");
    return;
out.startTag(null, "long-array");
if (name != null) {
    out.attribute(null, "name", name);
...
voidwriteLongArrayXml(long[] val, String name, XmlSerializer out)
Flatten a long[] into an XmlSerializer.
if (val == null) {
    out.startTag(null, "null");
    out.endTag(null, "null");
    return;
out.startTag(null, "long-array");
if (name != null) {
    out.attribute(null, "name", name);
...
voidwriteLongAttribute(XmlSerializer out, String name, long value)
write Long Attribute
out.attribute(null, name, Long.toString(value));
voidwriteLongAttribute(XmlSerializer out, String name, long value)
write Long Attribute
out.attribute(null, name, Long.toString(value));
voidwriteMapXml(Map val, String name, XmlSerializer out)
Flatten a Map into an XmlSerializer.
if (val == null) {
    out.startTag(null, "null");
    out.endTag(null, "null");
    return;
Set s = val.entrySet();
Iterator i = s.iterator();
out.startTag(null, "map");
...
voidwriteMapXml(Map val, String name, XmlSerializer out)
Flatten a Map into an XmlSerializer.
if (val == null) {
    out.startTag(null, "null");
    out.endTag(null, "null");
    return;
Set s = val.entrySet();
Iterator i = s.iterator();
out.startTag(null, "map");
...
voidwriteMapXml(Map val, String name, XmlSerializer out)
Flatten a Map into an XmlSerializer.
if (val == null) {
    out.startTag(null, "null");
    out.endTag(null, "null");
    return;
Set s = val.entrySet();
Iterator i = s.iterator();
out.startTag(null, "map");
...